<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>MultiChain Developer Q&amp;A - Recent questions tagged smart-filters</title>
<link>https://www.multichain.com/qa/tag/smart-filters</link>
<description>Powered by Question2Answer</description>
<item>
<title>Smart filters: initiate transaction on certain condition in stream</title>
<link>https://www.multichain.com/qa/91341/smart-filters-initiate-transaction-certain-condition-stream</link>
<description>Hi,&lt;br /&gt;
&lt;br /&gt;
I was playing around with the smart filter function and was wondering about this scanario:&lt;br /&gt;
Node 1 pulishes to a stream certain values, like energy meter data:&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;energy&amp;quot;: 1000&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
is it possible to craft a filter whoch checks if the energy value is over a certain value and create a transaction from Node1 to Node2? Would it be a transaction or a stream filter, anyway?&lt;br /&gt;
&lt;br /&gt;
something like&lt;br /&gt;
function filtertransaction()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var item=getfilterstreamitem();&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var json=item.data.json;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (json.energy &amp;gt; 1000)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// check if there are enough funds&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// if yes, create transaction&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return &amp;quot;Transaction from address XX to YY was successful&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
Or do I have a complete misunderstanding here? Based on this question I am not completly sure: &lt;a href=&quot;https://www.multichain.com/qa/26462/add-balance-to-a-especific-address-using-smart-filters&quot; rel=&quot;nofollow&quot;&gt;https://www.multichain.com/qa/26462/add-balance-to-a-especific-address-using-smart-filters&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Thanks a lot in advance.&lt;br /&gt;
&lt;br /&gt;
edit: the smart filter is working. I tested it with values smaller and bigger than 1000 and if smaller than 1000 adding an entry to the stream is refused. Now the question is, if I can craft a transaction for when the condition gets true?</description>
<guid isPermaLink="true">https://www.multichain.com/qa/91341/smart-filters-initiate-transaction-certain-condition-stream</guid>
<pubDate>Sun, 16 Feb 2025 21:31:00 +0000</pubDate>
</item>
<item>
<title>smart filter and smart transaction tutorial</title>
<link>https://www.multichain.com/qa/43471/smart-filter-and-smart-transaction-tutorial</link>
<description>Hi,&lt;br /&gt;
&lt;br /&gt;
I want to learn step by step how write and run smart filter and smart transaction.&lt;br /&gt;
&lt;br /&gt;
Which language I wrote them? Where I wrote them? can i have online resources to learn step by step?</description>
<guid isPermaLink="true">https://www.multichain.com/qa/43471/smart-filter-and-smart-transaction-tutorial</guid>
<pubDate>Sun, 28 Nov 2021 22:16:47 +0000</pubDate>
</item>
<item>
<title>How can i apply smart filter to issuemore transaction?</title>
<link>https://www.multichain.com/qa/34321/how-can-i-apply-smart-filter-to-issuemore-transaction</link>
<description>Hello, &lt;br /&gt;
Can anyone explain me is it possible to apply smart filter to issuemore api calls, and if it possible how can i do this in practice? Thank you.</description>
<guid isPermaLink="true">https://www.multichain.com/qa/34321/how-can-i-apply-smart-filter-to-issuemore-transaction</guid>
<pubDate>Mon, 28 Jun 2021 13:37:52 +0000</pubDate>
</item>
<item>
<title>Can stream filters write something to the blockchain or modify the stream item?</title>
<link>https://www.multichain.com/qa/33742/stream-filters-write-something-blockchain-modify-stream-item</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;let's suppose I'm publishing some JSON to a MultiChain stream and I want to either&lt;/p&gt;&lt;p&gt;1) publish the object with some modifications (e.g., add\remove a key, edit a value, etc.)&lt;/p&gt;&lt;p style=&quot;text-align:center&quot;&gt;or&lt;/p&gt;&lt;p&gt;2) publish (or not) the object as it is, but create\update a blockchain variable&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Is this possible?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thank you!&lt;/p&gt;</description>
<guid isPermaLink="true">https://www.multichain.com/qa/33742/stream-filters-write-something-blockchain-modify-stream-item</guid>
<pubDate>Thu, 17 Jun 2021 10:23:31 +0000</pubDate>
</item>
<item>
<title>Add balance to a especific address using smart filters</title>
<link>https://www.multichain.com/qa/26462/add-balance-to-a-especific-address-using-smart-filters</link>
<description>Hello MC Team&lt;br /&gt;
&lt;br /&gt;
I am developing a basic &amp;nbsp;prototype that simulates a loan , there are 2 parties in this particular scenario , 1) the lender , 2) the borrower &amp;nbsp;. Once a lender has given an ammount of assets (USD) to the borrower , the first one must receive an interest in a predefined basis, for instance 30 days since the funds was lended , any idea for solving this using smart filters? I was checking this case &amp;nbsp;using a smart contract plattform , but I am still wondering if Multichain is able to do the same using filters or any piece of code.&lt;br /&gt;
&lt;br /&gt;
Thanks in advance&lt;br /&gt;
&lt;br /&gt;
David.</description>
<guid isPermaLink="true">https://www.multichain.com/qa/26462/add-balance-to-a-especific-address-using-smart-filters</guid>
<pubDate>Sat, 09 Jan 2021 07:08:41 +0000</pubDate>
</item>
<item>
<title>How to deploy Smart filter code to Multichain ?</title>
<link>https://www.multichain.com/qa/20828/how-to-deploy-smart-filter-code-to-multichain</link>
<description>&lt;p&gt;Dear Team,I have read all documentation regarding smart filter. I have read all posts but i am still not able to deploy my code to multichain.&lt;/p&gt;&lt;p&gt;This is my code&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color:#569cd6&quot;&gt;function&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#dcdcaa&quot;&gt;filterstreamitem&lt;/span&gt;()&amp;nbsp;{&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#569cd6&quot;&gt;var&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#9cdcfe&quot;&gt;item&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color:#dcdcaa&quot;&gt;getfilterstreamitem&lt;/span&gt;();&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#c586c0&quot;&gt;if&lt;/span&gt;&amp;nbsp;(&lt;span style=&quot;color:#9cdcfe&quot;&gt;item&lt;/span&gt;.&lt;span style=&quot;color:#9cdcfe&quot;&gt;format&lt;/span&gt;&amp;nbsp;!=&amp;nbsp;&lt;span style=&quot;color:#ce9178&quot;&gt;&quot;json&quot;&lt;/span&gt;)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#c586c0&quot;&gt;return&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#ce9178&quot;&gt;&quot;Only&amp;nbsp;JSON&amp;nbsp;items&amp;nbsp;are&amp;nbsp;allowed&quot;&lt;/span&gt;;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#569cd6&quot;&gt;var&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#9cdcfe&quot;&gt;json&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color:#9cdcfe&quot;&gt;item&lt;/span&gt;.&lt;span style=&quot;color:#9cdcfe&quot;&gt;data&lt;/span&gt;.&lt;span style=&quot;color:#9cdcfe&quot;&gt;json&lt;/span&gt;;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#c586c0&quot;&gt;if&lt;/span&gt;&amp;nbsp;((!&lt;span style=&quot;color:#9cdcfe&quot;&gt;json&lt;/span&gt;.&lt;span style=&quot;color:#dcdcaa&quot;&gt;hasOwnProperty&lt;/span&gt;(&lt;span style=&quot;color:#ce9178&quot;&gt;&quot;PersonName&quot;&lt;/span&gt;))&amp;nbsp;||&amp;nbsp;(&lt;span style=&quot;color:#9cdcfe&quot;&gt;json&lt;/span&gt;.&lt;span style=&quot;color:#9cdcfe&quot;&gt;PersonName&lt;/span&gt;.&lt;span style=&quot;color:#9cdcfe&quot;&gt;length&lt;/span&gt;&amp;nbsp;&amp;lt;&amp;nbsp;&lt;span style=&quot;color:#b5cea8&quot;&gt;2&lt;/span&gt;))&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#c586c0&quot;&gt;return&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#ce9178&quot;&gt;&quot;Item&amp;nbsp;requires&amp;nbsp;a&amp;nbsp;PersonName&quot;&lt;/span&gt;;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#c586c0&quot;&gt;if&lt;/span&gt;&amp;nbsp;((!&lt;span style=&quot;color:#9cdcfe&quot;&gt;json&lt;/span&gt;.&lt;span style=&quot;color:#dcdcaa&quot;&gt;hasOwnProperty&lt;/span&gt;(&lt;span style=&quot;color:#ce9178&quot;&gt;&quot;PersonCnic&quot;&lt;/span&gt;))&amp;nbsp;||&amp;nbsp;(&lt;span style=&quot;color:#9cdcfe&quot;&gt;json&lt;/span&gt;.&lt;span style=&quot;color:#9cdcfe&quot;&gt;PersonCnic&lt;/span&gt;.&lt;span style=&quot;color:#9cdcfe&quot;&gt;length&lt;/span&gt;&amp;nbsp;!=&amp;nbsp;&lt;span style=&quot;color:#b5cea8&quot;&gt;2&lt;/span&gt;))&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#c586c0&quot;&gt;return&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#ce9178&quot;&gt;&quot;Item&amp;nbsp;requires&amp;nbsp;a&amp;nbsp;valid&amp;nbsp;Person&amp;nbsp;Cnic&quot;&lt;/span&gt;;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;I have tried everything . i am on windows. My command is multichain-cli chain1 create streamfilter&amp;nbsp; filter1 &quot;{}&quot; 'code'&amp;nbsp; &amp;nbsp;. I have tried one line with single quotes but my code is not being deployed. Each time getting errors. here is my stream data.&lt;/p&gt;&lt;p&gt;&quot;data&quot; : {&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;json&quot; : {&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;_id&quot; : &quot;5ec77c6308108850902511f2&quot;,&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;PersonName&quot; : &quot;Testing prototype&quot;,&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;PersonCnic&quot; : &quot;3310062212345&quot;,&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;Hash&quot; : &quot;fe540724937edbcbd170d39d7a6ee70e9d429f2d&quot;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; },&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Simple function. Please tell me exact how to run filter&lt;/p&gt;</description>
<guid isPermaLink="true">https://www.multichain.com/qa/20828/how-to-deploy-smart-filter-code-to-multichain</guid>
<pubDate>Sun, 07 Jun 2020 19:06:38 +0000</pubDate>
</item>
<item>
<title>How to access JavaScript Class &quot;Date&quot; in a Stream Filter?</title>
<link>https://www.multichain.com/qa/19706/how-to-access-javascript-class-date-in-a-stream-filter</link>
<description>&lt;p&gt;&lt;span style=&quot;color:#0451a5&quot;&gt;I would like to check if some value can be parsed to a date, which should be easy with JavaScript's function Date.parse() but I get an error saying: &lt;em&gt;TypeError:&amp;nbsp;Date.parse&amp;nbsp;is&amp;nbsp;not&amp;nbsp;a&amp;nbsp;function&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color:#0451a5&quot;&gt;Is it possible that Multichain restricts the use of the Date class? I know that Date.now() is restricted but is Date.parse() as well?&lt;/span&gt;&lt;/p&gt;</description>
<guid isPermaLink="true">https://www.multichain.com/qa/19706/how-to-access-javascript-class-date-in-a-stream-filter</guid>
<pubDate>Thu, 30 Apr 2020 14:40:41 +0000</pubDate>
</item>
<item>
<title>liststreamkeys in filtercode.</title>
<link>https://www.multichain.com/qa/19316/liststreamkeys-in-filtercode</link>
<description>&lt;p&gt;I'm trying to implement my own filter code. In which I want to use liststreamkeyitems as function. since it needs two parameters stringName and keyName. So I tried using it as, liststreamkeyitems(&quot;stream1&quot;,&quot;key1&quot;). Key1 is the key preset in stream1. So while executing this command, it is showing me error as lisstreamkeyitems&amp;nbsp;is undefined. So to know the details of error I tried using teststreamfilters but there also I'm getting some syntacterror .&lt;br&gt;&lt;br&gt;So I would like to request you if you could take any demo example and show me how to use teststreamfilters command and please also let me know the way I'm using liststreamkeyitems(&quot;stream1&quot;,&quot;key1&quot;), &amp;nbsp;is right or not?&lt;/p&gt;&lt;p&gt;Testfilterstream executed command:&lt;/p&gt;&lt;p&gt;teststreamfilter &quot;function filterstreamitem(){ var item= getfilterstreamitem(); if(item.keys.length&amp;lt;2) return 'At least two keys required';}&quot; &quot;3e0849da9671563be8d71fccf5f33b1c9aeacd681a354fc98350c874e867136c&quot;&amp;nbsp;&lt;/p&gt;&lt;p&gt;O/P error:&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color:#FFFF00&quot;&gt;Error parsing JSON:function filterstreamitem(){ var item= getfilterstreamitem(); if(item.keys.length&amp;lt;2) return 'At least two keys required';}&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Since I was getting above error I tried using runstreamfilter,&lt;/p&gt;&lt;p&gt;runstreamfilter df1 &quot;3e0849da9671563be8d71fccf5f33b1c9aeacd681a354fc98350c874e867136c&quot;&lt;/p&gt;&lt;p&gt;But the output i got is,&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color:#FFFF00&quot;&gt;Stream input is not found in this transaction&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color:#FFFF00&quot;&gt;Why I'm getting above error is it bcz i have not passed vout in above line but how can i even pass vout i have not created transaction i have created stream1, which is already created and all i have is its transaction id. In stream how can we get vout?&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Check the df1 code:&lt;/p&gt;&lt;p&gt;function filterstreamitem() { var item = getfilterstreamitem(); var keyinfo=liststreamkeyitems(item,&quot;key1&quot;);var data=keyinfo.data;if(data&amp;gt;50) return &quot;successful&quot;;else return &quot;unsuccessful&quot;;}&lt;/p&gt;&lt;p&gt;did I use liststreamkeyitems function properly??&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
<guid isPermaLink="true">https://www.multichain.com/qa/19316/liststreamkeys-in-filtercode</guid>
<pubDate>Thu, 16 Apr 2020 02:04:49 +0000</pubDate>
</item>
<item>
<title>how to upgrade stream filters code? And how to delete existing filter?</title>
<link>https://www.multichain.com/qa/19313/how-upgrade-stream-filters-code-how-delete-existing-filter</link>
<description>how to update filters code which is already created and s there any way to delete the filter?</description>
<guid isPermaLink="true">https://www.multichain.com/qa/19313/how-upgrade-stream-filters-code-how-delete-existing-filter</guid>
<pubDate>Wed, 15 Apr 2020 14:04:29 +0000</pubDate>
</item>
<item>
<title>Please Provide Example of 4 steps of &quot;To use an approval&quot; of transaction-filter github code: To use an approval&quot;</title>
<link>https://www.multichain.com/qa/18926/please-provide-example-approval-transaction-filter-approval</link>
<description>&lt;p&gt;Sir the ways you mentioned are not helpful&lt;/p&gt;&lt;p&gt;Referer this code:&lt;/p&gt;&lt;p&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/MultiChain/smart-filter-examples/blob/master/transaction-filters/approve-asset-transfer.js&quot;&gt;https://github.com/MultiChain/smart-filter-examples/blob/master/transaction-filters/approve-asset-transfer.js&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Here they have mentioned steps &quot;to use an approval&quot; in which the commands which are mentioned are:&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color:rgb(106, 115, 125); font-family:sfmono-regular,consolas,liberation mono,menlo,monospace; font-size:12px&quot;&gt;createrawsendfrom &lt;/span&gt;&amp;nbsp;and&amp;nbsp;&lt;span style=&quot;color:rgb(106, 115, 125); font-family:sfmono-regular,consolas,liberation mono,menlo,monospace; font-size:12px&quot;&gt;appendrawtransaction, there is no syntax given in any links provided by multichain and the links which you have mentioned in my previous question.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color:rgb(106, 115, 125); font-family:sfmono-regular,consolas,liberation mono,menlo,monospace; font-size:12px&quot;&gt;You may say the other commands are similar so I should refer that, so I would like to tell you that I have already referred and tried executing that and accordingly I also tried above commands but I'm facing syntax issue that is why I wanted proper guidance. If you could provide me that 4 steps example with syntax then I would really appreciate it.&lt;/span&gt;&lt;/p&gt;</description>
<guid isPermaLink="true">https://www.multichain.com/qa/18926/please-provide-example-approval-transaction-filter-approval</guid>
<pubDate>Sat, 21 Mar 2020 10:30:32 +0000</pubDate>
</item>
<item>
<title>Github transaction filter example: Approve Asset Transfer, I'm not able to understand this code?</title>
<link>https://www.multichain.com/qa/18808/github-transaction-filter-example-approve-transfer-understand</link>
<description>&lt;p&gt;Code link:&amp;nbsp;&lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/MultiChain/smart-filter-examples/blob/master/transaction-filters/approve-asset-transfer.js&quot;&gt;https://github.com/MultiChain/smart-filter-examples/blob/master/transaction-filters/approve-asset-transfer.js&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Error:&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color:rgb(255, 187, 204); font-family:source sans pro,calibri,candara,arial,sans-serif; font-size:15px&quot;&gt;Filter code blocked this transaction with the reason: (time taken 0.001472 seconds)&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;background-color:rgb(255, 187, 204); font-family:source sans pro,calibri,candara,arial,sans-serif; font-size:15px&quot;&gt;Address 1KB85GgVgHyters6tMMeQ7DYS9fkY192yq8ey1V did not include sufficient USD spending approvals in this transaction false undefined&lt;/span&gt;&lt;/p&gt;&lt;p&gt;I'm trying to understand GitHub transaction filter example- approve asset transfer.&lt;/p&gt;&lt;p&gt;If I have understood it correctly, that code is processing an only pre-approved transaction. pre-approved transactions are those whom&amp;nbsp;approvals are given by the address with low-1 permissions. And that approvals are provided by the command:&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color:rgb(106, 115, 125); font-family:sfmono-regular,consolas,liberation mono,menlo,monospace; font-size:12px&quot;&gt;sendfrom &amp;lt;approver-address&amp;gt; &amp;lt;approvee-address&amp;gt; {&quot;data&quot;:{&quot;json&quot;:{&quot;type&quot;:&quot;approval&quot;,&quot;maxraw&quot;:&amp;lt;rawqty&amp;gt;,&quot;expiry&quot;:&amp;lt;expiry&amp;gt;}}}&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color:#6a737d; font-family:sfmono-regular,consolas,liberation mono,menlo,monospace&quot;&gt;&lt;span style=&quot;font-size:12px&quot;&gt;So I gave approvals using the above command and I set max raw quantity and expiry as last block time. And then I tried to run this code. But still, I'm getting the above error. To identify that my approval is set properly, I'm checking variable like&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;for (var inputnum=0; inputnum&amp;lt;tx.vin.length; inputnum++) {&lt;/p&gt;&lt;p&gt;var spentoutput=getfiltertxinput(inputnum);&lt;/p&gt;&lt;p&gt;if (&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; outputisapproval(spentoutput) &amp;amp;&amp;amp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (spentoutput.scriptPubKey.addresses[0]==address)&amp;amp;&amp;amp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (spentoutput.data[0].json.expiry &amp;gt;= getlastblockinfo().time)&lt;/p&gt;&lt;p&gt;) {&lt;/p&gt;&lt;p&gt;requiredraw-=spentoutput.data[0].json.maxraw; /* we can use this approval */&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;if (requiredraw&amp;gt;0)&lt;/p&gt;&lt;p&gt;return &quot;Address &quot;+address+&quot; did not include sufficient USD spending approvals in this transaction &quot;+hasapproval+&quot; &quot;+&lt;span style=&quot;background-color:#FFFF00&quot;&gt;spentoutput.data;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;why spentoutput.data is returned as undefined even when I have given approvals:&lt;/p&gt;&lt;p&gt;command:&lt;/p&gt;&lt;p&gt;sendfrom &lt;span style=&quot;background-color:rgb(255, 187, 204); color:rgb(51, 51, 51); font-family:source sans pro,calibri,candara,arial,sans-serif; font-size:15px&quot;&gt;1KB85GgVgHyters&lt;/span&gt;&lt;span style=&quot;background-color:rgb(255, 187, 204); color:rgb(51, 51, 51); font-family:source sans pro,calibri,candara,arial,sans-serif; font-size:15px&quot;&gt;6tMMeQ7DYS9fkY192yq8ey1V&amp;nbsp; &lt;/span&gt;&amp;nbsp; 192ruBtNjWSXUQi2xpWmka5M14rUbNNxzxTbcb '{&quot;data&quot;:{&quot;json&quot;:{&quot;type&quot;:&quot;approval&quot;,&quot;maxraw&quot;:10000000,&quot;expiry&quot;:1584258634}}}'&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Please resolve my doubt asap.&lt;/p&gt;</description>
<guid isPermaLink="true">https://www.multichain.com/qa/18808/github-transaction-filter-example-approve-transfer-understand</guid>
<pubDate>Sun, 15 Mar 2020 10:16:57 +0000</pubDate>
</item>
<item>
<title>But Where should i enter my code?</title>
<link>https://www.multichain.com/qa/17752/but-where-should-i-enter-my-code</link>
<description>I have read document's smart filters part but i actually wanted each and every step to run my code. Like how should i add my code in command line. There it's written that java-script engine is already embedded. But in which location i have to add java-script code? How should i check that it is working properly? All these things i wanted to know. Can anyone please guide me? And also i want to know more about smart filters. So is there any article or research paper which can be helpful to me to know smart-filters in detail?</description>
<guid isPermaLink="true">https://www.multichain.com/qa/17752/but-where-should-i-enter-my-code</guid>
<pubDate>Mon, 27 Jan 2020 01:45:23 +0000</pubDate>
</item>
<item>
<title>multiple stream filters question</title>
<link>https://www.multichain.com/qa/17689/multiple-stream-filters-question</link>
<description>Hi guys,&lt;br /&gt;
&lt;br /&gt;
If I have multiple stream filters activated on a stream which validate different item data, is there a fixed order in which the streams checks will be performed?&lt;br /&gt;
&lt;br /&gt;
e.g. filter 1 checks:&lt;br /&gt;
&lt;br /&gt;
var oItem = getfilterstreamitem();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (!oItem &amp;amp;&amp;amp; !oItem.myData) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return 'no valid stream item';&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
filter 2 wants to check deeper item properties e.g.&lt;br /&gt;
&lt;br /&gt;
var oItem = getfilterstreamitem();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (!oItem.myData.myProperty) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return 'no valid stream item';&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
filter 2 relies on filter 1. So I want filter 1 to be performed first and then filter2. Because if filter 2 is performed first and there is no oItem.myData it will crash with a JS error. To prevent this I have to copy the code from filter 1 also to filter2 which I don't want as that would mean that every filter has to have the same &amp;quot;precondition filter code&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Or do I have to deactivate filter 1 first and then copy filter 1 code to filter 2 and activate only one &amp;quot;big&amp;quot; filter?&lt;br /&gt;
&lt;br /&gt;
Another question: what is with performance of many small filters vs one big filter? What is better?</description>
<guid isPermaLink="true">https://www.multichain.com/qa/17689/multiple-stream-filters-question</guid>
<pubDate>Wed, 22 Jan 2020 09:47:54 +0000</pubDate>
</item>
<item>
<title>Extending Smart Filters</title>
<link>https://www.multichain.com/qa/16825/extending-smart-filters</link>
<description>HI&lt;br /&gt;
&lt;br /&gt;
We are looking at enforcing rules regarding asset issuances and transfers directly on the MultiChain nodes to remove the need for participants to use our own services for this purpose.&lt;br /&gt;
&lt;br /&gt;
To do this we really need a way to publish and store rule metadata on the chain that could then be accessed by a smart filter and applied to transactions. &amp;nbsp;We had thought we could use a stream to mange this metadata.&lt;br /&gt;
&lt;br /&gt;
Browsing the documentation, I don't think we can do this. &amp;nbsp;It looks like the only place we could store metadata that we could retrieve from within the filter would be to inject it into the initial asset issuance which for asset rules should be OK bar we could never change it, but ideally we would want to be able to manage the meta-data in such a way we could update it over time.&lt;br /&gt;
&lt;br /&gt;
In addition, is there any way to find the chain burn address from within the filter?&lt;br /&gt;
&lt;br /&gt;
Marty</description>
<guid isPermaLink="true">https://www.multichain.com/qa/16825/extending-smart-filters</guid>
<pubDate>Tue, 26 Nov 2019 21:46:21 +0000</pubDate>
</item>
<item>
<title>Guidance to create smart filters on cold</title>
<link>https://www.multichain.com/qa/16599/guidance-to-create-smart-filters-on-cold</link>
<description>We are properly protecting admin key, cold signing permission management. But now are needing to create filters that have to be done by admin addresses. Can you please provide steps to do that using the cold node? &lt;br /&gt;
&lt;br /&gt;
Thanks in Advance.</description>
<guid isPermaLink="true">https://www.multichain.com/qa/16599/guidance-to-create-smart-filters-on-cold</guid>
<pubDate>Mon, 11 Nov 2019 13:55:47 +0000</pubDate>
</item>
<item>
<title>Can coinbase transactions be filtered?</title>
<link>https://www.multichain.com/qa/15300/can-coinbase-transactions-be-filtered</link>
<description>I'm trying to set up some mining addresses but not rewardable. &lt;br /&gt;
&lt;br /&gt;
I've read filters can not be applied to the output of coinbase transactions.&lt;br /&gt;
&lt;br /&gt;
Is there any way to reject such transactions or redirect native currency output to another ( i.e. burn ) address?&lt;br /&gt;
&lt;br /&gt;
Regards!</description>
<guid isPermaLink="true">https://www.multichain.com/qa/15300/can-coinbase-transactions-be-filtered</guid>
<pubDate>Sat, 31 Aug 2019 01:26:00 +0000</pubDate>
</item>
<item>
<title>Writing streanm filter with specific function</title>
<link>https://www.multichain.com/qa/14708/writing-streanm-filter-with-specific-function</link>
<description>Hi,&lt;br /&gt;
&lt;br /&gt;
I am looking to create a smart filter that makes sure if you post an item with key value x that the last item on the stream had key value y in order to post it. Is there a way to perform this check? I couldn't follow the API very well to know if there was a good way to make sure. Thanks</description>
<guid isPermaLink="true">https://www.multichain.com/qa/14708/writing-streanm-filter-with-specific-function</guid>
<pubDate>Wed, 03 Jul 2019 21:23:38 +0000</pubDate>
</item>
<item>
<title>Multichain Enteprise: Selective Stream Indexing</title>
<link>https://www.multichain.com/qa/14640/multichain-enteprise-selective-stream-indexing</link>
<description>A while back ago I asked a question on how could I retrieve information about a previous stream's item from inside a stream filter and it wasn't possible as we couldn't know if nodes were indexing that. &lt;br /&gt;
&lt;br /&gt;
Would this command for Enterprise Solution work solving the issue?&lt;br /&gt;
&lt;br /&gt;
Un-related but, how is the pricing option for the Enterprise Software? ( We would run it ourselves)</description>
<guid isPermaLink="true">https://www.multichain.com/qa/14640/multichain-enteprise-selective-stream-indexing</guid>
<pubDate>Sat, 29 Jun 2019 21:43:00 +0000</pubDate>
</item>
<item>
<title>Create SmartFilters from file due to ARG_MAX</title>
<link>https://www.multichain.com/qa/14138/create-smartfilters-from-file-due-to-arg_max</link>
<description>&lt;p&gt;So,&lt;/p&gt;&lt;p&gt;I need to create a Transaction Filter which is enormous (&lt;img title=&quot;angel&quot; alt=&quot;angel&quot; src=&quot;https://www.multichain.com/qa/qa-plugin/wysiwyg-editor/ckeditor/plugins/smiley/images/angel_smile.png&quot; style=&quot;height:23px; width:23px&quot;&gt;)&amp;nbsp;due to a few JSON's. There's simply no way to insert that on the terminal due to &quot;getconf ARG_MAX&quot; (the max size of a terminal command) generally being ~250k bytes.&lt;/p&gt;&lt;p&gt;Already tried to put everything on the same line without spaces, but I'm way pass that.&lt;/p&gt;&lt;p&gt;Can you help me in any way?&amp;nbsp;&lt;/p&gt;</description>
<guid isPermaLink="true">https://www.multichain.com/qa/14138/create-smartfilters-from-file-due-to-arg_max</guid>
<pubDate>Thu, 23 May 2019 01:24:53 +0000</pubDate>
</item>
<item>
<title>getting data from streams</title>
<link>https://www.multichain.com/qa/14066/getting-data-from-streams</link>
<description>Hello Multichain,&lt;br /&gt;
&lt;br /&gt;
I have created a stream called users, where &amp;nbsp;&amp;nbsp;each address of the user is stored along with the username. I could get the entire array of objects and &amp;nbsp;check for a purticular user. But I needed a more effecient method &lt;br /&gt;
&lt;br /&gt;
Is there a way by using say Smartfilters we can pass metadata &amp;nbsp;value and get the object out ?&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
Please let me know&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
Thanks</description>
<guid isPermaLink="true">https://www.multichain.com/qa/14066/getting-data-from-streams</guid>
<pubDate>Fri, 17 May 2019 10:30:00 +0000</pubDate>
</item>
<item>
<title>Stream Smart Filter: Get Transaction Information through TxID</title>
<link>https://www.multichain.com/qa/13167/stream-smart-filter-transaction-information-through-txid</link>
<description>&lt;p&gt;While I was developing a Smart Filter I encountered a situation where the streamItem.keys[0] was a transactionID and I had to get information about that transactionID.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Basically, I needed a function&amp;nbsp;&lt;/p&gt;&lt;pre&gt;getTransaction :: TxID -&amp;gt; { TransationInfo } &lt;/pre&gt;&lt;pre&gt;where I could pass a transaction ID and receive more information about that transaction.&amp;nbsp;&lt;/pre&gt;&lt;p&gt;&lt;em&gt;Use-Case: The user is posting some data into the stream, referring (through a txID in the key), that this new data is supposed to replace an older item with said ID, and I need to make sure that this old ID exists (and a few other properties as well).&amp;nbsp;&lt;/em&gt;&lt;/p&gt;</description>
<guid isPermaLink="true">https://www.multichain.com/qa/13167/stream-smart-filter-transaction-information-through-txid</guid>
<pubDate>Tue, 26 Mar 2019 20:30:23 +0000</pubDate>
</item>
<item>
<title>How create a filter who forbiden transaction if the adress reach max asset unit ?</title>
<link>https://www.multichain.com/qa/12991/create-filter-forbiden-transaction-adress-reach-asset-unit</link>
<description>Hi !&lt;br /&gt;
Is it possible to put a limit on the maximum number of asset that an address can have?&lt;br /&gt;
For example I have a total of 20 PCs and I want each node to have only 5 maximum at the same time.&lt;br /&gt;
Is it possible to make this limitation with smart filter?</description>
<guid isPermaLink="true">https://www.multichain.com/qa/12991/create-filter-forbiden-transaction-adress-reach-asset-unit</guid>
<pubDate>Mon, 04 Mar 2019 08:56:58 +0000</pubDate>
</item>
<item>
<title>Stream filter to check the keys</title>
<link>https://www.multichain.com/qa/12944/stream-filter-to-check-the-keys</link>
<description>Hi,&lt;br /&gt;
&lt;br /&gt;
I want to use stream filter to validate my input key and reject incase it fails.&lt;br /&gt;
&lt;br /&gt;
My key should be in format 111-22-3. Any other key like 11111-22222-333 should fail.&lt;br /&gt;
&lt;br /&gt;
Below is the snippet to create a filter to check and match above regex for key.&lt;br /&gt;
&lt;br /&gt;
create streamfilter testfilter '{}' 'function filterstreamitem() { &amp;nbsp;var item=getfilterstreamitem(); if (item.keys.length&amp;lt;8) { key = item.keys.data; var ncheck= &amp;quot;[0-9]{3}[-][0-9]{2}[-][0-9]{1}&amp;quot;; var ncheck1= new RegExp(ncheck); return ncheck1.test(key)} }'&lt;br /&gt;
&lt;br /&gt;
I am able to create the filter successfully and approved by admin, but still the wrong keys are passing the stream.&lt;br /&gt;
&lt;br /&gt;
Is there anything i am missing?&lt;br /&gt;
&lt;br /&gt;
I think this will be an interesting feature and will be helpful..! Expecting MC to grow more and more with new features everyday :)</description>
<guid isPermaLink="true">https://www.multichain.com/qa/12944/stream-filter-to-check-the-keys</guid>
<pubDate>Thu, 21 Feb 2019 20:20:07 +0000</pubDate>
</item>
<item>
<title>Disable or deleting a smart filter</title>
<link>https://www.multichain.com/qa/12943/disable-or-deleting-a-smart-filter</link>
<description>Hi,&lt;br /&gt;
&lt;br /&gt;
Is there a way to disable or delete the tx and stream filters.&lt;br /&gt;
&lt;br /&gt;
I am testing filters and any modification inside the function, i have to again create a new filter.&lt;br /&gt;
&lt;br /&gt;
Thanks.</description>
<guid isPermaLink="true">https://www.multichain.com/qa/12943/disable-or-deleting-a-smart-filter</guid>
<pubDate>Thu, 21 Feb 2019 20:09:22 +0000</pubDate>
</item>
<item>
<title>Stream Smart Filter: Is the file still kept in storage if invalid?</title>
<link>https://www.multichain.com/qa/12907/stream-smart-filter-is-the-file-still-kept-storage-if-invalid</link>
<description>&lt;blockquote&gt;&lt;p&gt;&lt;span style=&quot;font-family:helvetica neue,helvetica,arial,sans-serif; font-size:14px&quot;&gt;A stream filter is only applied by nodes subscribed to a stream, and so is more efficient, but cannot prevent malicious nodes from publishing invalid data (which will subsequently be ignored by stream subscribers). Note also that transaction filters cannot perform validation of off-chain data, since that data does not appear inside the transaction itself, whereas stream filters can validate both on-chain or off-chain data.&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Am I right to assume that &quot;ignored by stream subscribers&quot; means that files deemed invalid by stream rules would be deleted upon arrival by the nodes?&amp;nbsp;&lt;/p&gt;</description>
<guid isPermaLink="true">https://www.multichain.com/qa/12907/stream-smart-filter-is-the-file-still-kept-storage-if-invalid</guid>
<pubDate>Mon, 18 Feb 2019 21:04:07 +0000</pubDate>
</item>
<item>
<title>What is the use of smart filters in multichain?</title>
<link>https://www.multichain.com/qa/12802/what-is-the-use-of-smart-filters-in-multichain</link>
<description></description>
<guid isPermaLink="true">https://www.multichain.com/qa/12802/what-is-the-use-of-smart-filters-in-multichain</guid>
<pubDate>Thu, 07 Feb 2019 05:24:32 +0000</pubDate>
</item>
<item>
<title>Stream-filters to all streams</title>
<link>https://www.multichain.com/qa/12752/stream-filters-to-all-streams</link>
<description>Hello,&lt;br /&gt;
&lt;br /&gt;
Is it possible to apply a stream filters to all streams of a blockchain?&lt;br /&gt;
&lt;br /&gt;
Many thanks in advance.</description>
<guid isPermaLink="true">https://www.multichain.com/qa/12752/stream-filters-to-all-streams</guid>
<pubDate>Tue, 05 Feb 2019 12:52:01 +0000</pubDate>
</item>
<item>
<title>Creating new transaction filter</title>
<link>https://www.multichain.com/qa/12742/creating-new-transaction-filter</link>
<description>Hello Devs,&lt;br /&gt;
&lt;br /&gt;
I am deploying new transaction filter in netwok but it's throwing me parsing error and not getting deployed on chain can any body suggest me what to do now?&lt;br /&gt;
&lt;br /&gt;
create txfilter filter4 &amp;quot;{}&amp;quot; &amp;quot;function filtertransaction()&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
var addressbalancechange=getfilterassetbalances(&amp;quot;USD&amp;quot;, true);&lt;br /&gt;
&lt;br /&gt;
for (var address in addressbalancechange)&lt;br /&gt;
&lt;br /&gt;
if (addressbalancechange[address]&amp;gt;1000)&lt;br /&gt;
&lt;br /&gt;
return &amp;quot;Address &amp;quot;+address+&amp;quot; is receiving too much USD&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
}&amp;quot;</description>
<guid isPermaLink="true">https://www.multichain.com/qa/12742/creating-new-transaction-filter</guid>
<pubDate>Tue, 05 Feb 2019 08:59:00 +0000</pubDate>
</item>
<item>
<title>How to use Stream filters ?</title>
<link>https://www.multichain.com/qa/12402/how-to-use-stream-filters</link>
<description>&lt;p&gt;Hello Guys ,&lt;/p&gt;&lt;p&gt;I am learning stream filter in multichain so i am just going through it and now i just reach to this points :&lt;/p&gt;&lt;p&gt;Smart Filter Tutorial&lt;/p&gt;&lt;p&gt;Below is an example set of&amp;nbsp;multichain-cli&amp;nbsp;commands that demonstrate the creation and application of a transaction filter and a smart filter.&lt;/p&gt;&lt;p&gt;First, run&amp;nbsp;listpermissions admin&amp;nbsp;and copy and paste the displayed&amp;nbsp;address&amp;nbsp;here:&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color:#FFD700&quot;&gt;Now create a transaction filter that prevents new streams being created:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;create txfilter filter1 '{}' 'function filtertransaction() { var tx=getfiltertransaction(); if (tx.create) return &quot;Stream creation temporarily disabled&quot;; }'&lt;/p&gt;&lt;p&gt;See the filter listed, retrieve its code and approve it:&lt;/p&gt;&lt;p&gt;listtxfilters&lt;br&gt;getfiltercode filter1&lt;br&gt;approvefrom&amp;nbsp;1Xs5ZRKETcsATQp4AgZPodfco14Amcx4FvYoc1&amp;nbsp;filter1 true&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;span style=&quot;color:#000000&quot;&gt;1)The point which i have highlighted for that i am having already running chain is running on my node But the point is i was not able to figure out how can i achieve this smart filters concept in cli interactive mode?&lt;br&gt;Or how can i embedded smartfilter code in existing multichain network?? how that embedded code can be used by everynode for validation?&lt;br&gt;2)In custom permissions what do you mean by high1,high2 and low1 , low 2 permission means?&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;</description>
<guid isPermaLink="true">https://www.multichain.com/qa/12402/how-to-use-stream-filters</guid>
<pubDate>Wed, 16 Jan 2019 09:51:17 +0000</pubDate>
</item>
<item>
<title>Fee and Smart Filters</title>
<link>https://www.multichain.com/qa/12121/fee-and-smart-filters</link>
<description>Can I set a minimum fee per smartfilter? so that it is customizable?</description>
<guid isPermaLink="true">https://www.multichain.com/qa/12121/fee-and-smart-filters</guid>
<pubDate>Mon, 31 Dec 2018 11:09:19 +0000</pubDate>
</item>
<item>
<title>can a filters reference other transactions?</title>
<link>https://www.multichain.com/qa/12017/can-a-filters-reference-other-transactions</link>
<description>Hi Multichain folks,&lt;br /&gt;
&lt;br /&gt;
I wondering if filters can reference transactions other than the transaction being filtered or stream items other than the stream items being filtered?&lt;br /&gt;
&lt;br /&gt;
For example, I'd like to implement a stream item filter that would prevent a publisher writing to a stream key that had already been written to by another publisher. The idea is to use streams as key value stores, where the first publisher to a key &amp;quot;owns&amp;quot; it and then is the only one that can publish to it.</description>
<guid isPermaLink="true">https://www.multichain.com/qa/12017/can-a-filters-reference-other-transactions</guid>
<pubDate>Thu, 20 Dec 2018 14:05:05 +0000</pubDate>
</item>
<item>
<title>Custom filter permissions examples</title>
<link>https://www.multichain.com/qa/11997/custom-filter-permissions-examples</link>
<description>Hello! Congratulation on the beta release! Keep up the good work!&lt;br /&gt;
&lt;br /&gt;
While reading the change notes, I've noticed that you added a support for custom filters. However, when I tried to look for examples for it in the docs (including the smart filter docs and the git repo) I couldn't find any code samples.&lt;br /&gt;
&lt;br /&gt;
Can you please show or provide some?&lt;br /&gt;
&lt;br /&gt;
Thanks again</description>
<guid isPermaLink="true">https://www.multichain.com/qa/11997/custom-filter-permissions-examples</guid>
<pubDate>Thu, 20 Dec 2018 08:07:59 +0000</pubDate>
</item>
<item>
<title>charging more than native currency for stream creation</title>
<link>https://www.multichain.com/qa/11964/charging-more-than-native-currency-for-stream-creation</link>
<description>I have created a chain for Non Fungible Token usage...with native currency applied...to transfer currency is 1 unit, but I wanted to charge more in chain for creation of a stream and a stream item with in it. Possible via smart filters?</description>
<guid isPermaLink="true">https://www.multichain.com/qa/11964/charging-more-than-native-currency-for-stream-creation</guid>
<pubDate>Tue, 18 Dec 2018 09:04:33 +0000</pubDate>
</item>
<item>
<title>Possible via smart filters to give permissions to mine based on native currency balance?</title>
<link>https://www.multichain.com/qa/11963/possible-smart-filters-permissions-native-currency-balance</link>
<description>If user holds X amount of native currency, mining permissions is given, otherwise mining permissions is revoked automatically...I can do this manually, but thinking it could be made automatic via smart filters?...</description>
<guid isPermaLink="true">https://www.multichain.com/qa/11963/possible-smart-filters-permissions-native-currency-balance</guid>
<pubDate>Tue, 18 Dec 2018 09:01:10 +0000</pubDate>
</item>
<item>
<title>pay out automatically using smart filters</title>
<link>https://www.multichain.com/qa/11940/pay-out-automatically-using-smart-filters</link>
<description>Can i create a smart filter that will pay out automatically an asset from the results of another asset transaction, based on logic rules i specify in the smart filter?</description>
<guid isPermaLink="true">https://www.multichain.com/qa/11940/pay-out-automatically-using-smart-filters</guid>
<pubDate>Sat, 15 Dec 2018 09:15:53 +0000</pubDate>
</item>
<item>
<title>Is there a ‘smart filters execution order’?</title>
<link>https://www.multichain.com/qa/11803/is-there-a-smart-filters-execution-order</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;suppose we have a blockchain running and &lt;em&gt;n&lt;/em&gt; active smart filters. In which order are they executed (if any) when a tx is sent to the blockchain?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thank you very much.&lt;/p&gt;</description>
<guid isPermaLink="true">https://www.multichain.com/qa/11803/is-there-a-smart-filters-execution-order</guid>
<pubDate>Sat, 08 Dec 2018 09:01:25 +0000</pubDate>
</item>
<item>
<title>Will there be other languages for smart filters?</title>
<link>https://www.multichain.com/qa/11732/will-there-be-other-languages-for-smart-filters</link>
<description>Hello,&lt;br /&gt;
&lt;br /&gt;
Will there be other languages for smart filters? I’m thinking about Python3 (or even MicroPython).&lt;br /&gt;
&lt;br /&gt;
Thanks for your answer.</description>
<guid isPermaLink="true">https://www.multichain.com/qa/11732/will-there-be-other-languages-for-smart-filters</guid>
<pubDate>Sat, 01 Dec 2018 09:08:18 +0000</pubDate>
</item>
<item>
<title>Smart filters in JavaScript project</title>
<link>https://www.multichain.com/qa/11664/smart-filters-in-javascript-project</link>
<description>&lt;p&gt;&lt;span style=&quot;font-size:14px&quot;&gt;Are there any third libraries for smart filter&amp;nbsp;implementation and&amp;nbsp;callbacks, like there is&amp;nbsp;&lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/scoin/multichain-node&quot;&gt;MultiChain-Node&lt;/a&gt;&amp;nbsp;for&amp;nbsp;&lt;span style=&quot;font-family:helvetica neue,helvetica,arial,sans-serif&quot;&gt;MultiChain JSON-RPC API? Or is there some other way to include smart filters in JavaScript project?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description>
<guid isPermaLink="true">https://www.multichain.com/qa/11664/smart-filters-in-javascript-project</guid>
<pubDate>Mon, 26 Nov 2018 12:30:04 +0000</pubDate>
</item>
<item>
<title>Is it possible to read stream_x content from a smart filter?</title>
<link>https://www.multichain.com/qa/11473/is-it-possible-to-read-stream_x-content-from-a-smart-filter</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;Is it possible to read &lt;em&gt;stream_x&lt;/em&gt; content from a smart filter?&lt;/p&gt;&lt;p&gt;The use case is the following:&lt;/p&gt;&lt;p&gt;I want to accept\reject a transaction (using an appropriate smart filter) of some asset depending on what a user has published on &lt;em&gt;stream_x&lt;/em&gt;.&lt;/p&gt;&lt;p&gt;Thanks.&lt;/p&gt;</description>
<guid isPermaLink="true">https://www.multichain.com/qa/11473/is-it-possible-to-read-stream_x-content-from-a-smart-filter</guid>
<pubDate>Tue, 06 Nov 2018 00:50:40 +0000</pubDate>
</item>
<item>
<title>Is it possible to allow exchange-only transactions on some kind of asset?</title>
<link>https://www.multichain.com/qa/11397/possible-allow-exchange-only-transactions-some-kind-asset</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;is it possible to allow exchange-only transactions on some kind of asset?&lt;/p&gt;&lt;p&gt;Consider this scenario: there are many assets, let's say &lt;em&gt;asset_1, asset_2, ..., asset_n&lt;/em&gt; and there are also some special ones: &lt;em&gt;special1&lt;/em&gt;, &lt;em&gt;special2.&lt;/em&gt; I need to allow transactions which involve asset&lt;em&gt;_i&lt;/em&gt; only if they are exchange transactions.&lt;/p&gt;&lt;p&gt;So:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;A sends B &lt;em&gt;asset_i&lt;/em&gt;: &lt;strong&gt;rejected&lt;/strong&gt;&lt;/li&gt;&lt;li&gt;A sends B &lt;em&gt;asset_i&lt;/em&gt; and B sends A &lt;em&gt;special1&lt;/em&gt; (or &lt;em&gt;special2&lt;/em&gt;): &lt;strong&gt;approved&lt;/strong&gt;&lt;/li&gt;&lt;li&gt;A sends B &lt;em&gt;special1&lt;/em&gt; (or &lt;em&gt;special2&lt;/em&gt;): &lt;strong&gt;approved&lt;/strong&gt;&lt;/li&gt;&lt;li&gt;A sends B &lt;em&gt;special1&lt;/em&gt; (or &lt;em&gt;special2&lt;/em&gt;) and B sends A &lt;em&gt;special1&lt;/em&gt; (or &lt;em&gt;special2&lt;/em&gt;): &lt;strong&gt;approved&lt;/strong&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I know I should use smart filters but I don't know where to begin.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Thank you very much.&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
<guid isPermaLink="true">https://www.multichain.com/qa/11397/possible-allow-exchange-only-transactions-some-kind-asset</guid>
<pubDate>Sat, 27 Oct 2018 17:14:33 +0000</pubDate>
</item>
<item>
<title>reject transaction filter working before approvefrom is executed</title>
<link>https://www.multichain.com/qa/11361/reject-transaction-filter-working-before-approvefrom-executed</link>
<description>&lt;p&gt;&lt;span style=&quot;font-size:16px&quot;&gt;I tried to deploy the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color:rgb(36, 41, 46); font-family:-apple-system,system-ui,segoe ui,helvetica,arial,sans-serif,apple color emoji,segoe ui emoji,segoe ui symbol; font-size:16px&quot;&gt;reject-all-transactions.js given in the code examples. The filter was compiled and then when I tried to run the approvefrom true for the filter it just doesn't allow it. The filter is working already for the approvefrom command only. It doesn't apply to other transactions. Attaching my code execution below.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;testingsmartfilters: getfiltercode rejectfilter&lt;/p&gt;&lt;p&gt;{&quot;method&quot;:&quot;getfiltercode&quot;,&quot;params&quot;:[&quot;rejectfilter&quot;],&quot;id&quot;:&quot;31237136-1540182035&quot;,&quot;chain_name&quot;:&quot;testingsmartfilters&quot;}&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;function filtertransaction() { return 'All transactions rejected' }&lt;/p&gt;&lt;p&gt;testingsmartfilters: listtxfilters&lt;/p&gt;&lt;p&gt;{&quot;method&quot;:&quot;listtxfilters&quot;,&quot;params&quot;:[],&quot;id&quot;:&quot;62675408-1540182044&quot;,&quot;chain_name&quot;:&quot;testingsmartfilters&quot;}&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;[&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;name&quot; : &quot;firstfilter&quot;,&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;createtxid&quot; : &quot;a72e6bcb8e49cc07c81b694d22d85ffb4be591d27b09ae6581fb9eea18626718&quot;,&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;filterref&quot; : &quot;47-265-11943&quot;,&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;language&quot; : &quot;javascript&quot;,&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;codelength&quot; : 139,&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;for&quot; : [&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ],&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;compiled&quot; : true,&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;approved&quot; : true&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; },&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;name&quot; : &quot;rejectfilter&quot;,&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;createtxid&quot; : &quot;2aed8e513fc295af15010bd39409f26a7033017dfad98c5b53c4dc051959ba6d&quot;,&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;filterref&quot; : &quot;71-265-60714&quot;,&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;language&quot; : &quot;javascript&quot;,&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;codelength&quot; : 67,&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;for&quot; : [&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ],&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;compiled&quot; : true,&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;approved&quot; : false&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;]&lt;/p&gt;&lt;p&gt;testingsmartfilters: approvefrom 1KHCUryUcu8MBcvwiF5zgxePbVfm18JJv4 rejectfilter false&lt;/p&gt;&lt;p&gt;{&quot;method&quot;:&quot;approvefrom&quot;,&quot;params&quot;:[&quot;1KHCUryUcu8MBcvwiF5zgxePbVfm18JJv4&quot;,&quot;rejectfilter&quot;,false],&quot;id&quot;:&quot;84112443-1540182070&quot;,&quot;chain_name&quot;:&quot;testingsmartfilters&quot;}&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;2e28c4b7d7d823d169183ca02194ebdab2c06b186004094436ef6680c4d3fa4d&lt;/p&gt;&lt;p&gt;testingsmartfilters: approvefrom 1KHCUryUcu8MBcvwiF5zgxePbVfm18JJv4 rejectfilter true&lt;/p&gt;&lt;p&gt;{&quot;method&quot;:&quot;approvefrom&quot;,&quot;params&quot;:[&quot;1KHCUryUcu8MBcvwiF5zgxePbVfm18JJv4&quot;,&quot;rejectfilter&quot;,true],&quot;id&quot;:&quot;47671806-1540182074&quot;,&quot;chain_name&quot;:&quot;testingsmartfilters&quot;}&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;error code: -26&lt;/p&gt;&lt;p&gt;error message:&lt;/p&gt;&lt;p&gt;Error: The transaction was rejected: 64: The transaction did not pass filter rejectfilter (txid 2aed8e513fc295af15010bd39409f26a7033017dfad98c5b53c4dc051959ba6d): All transactions rejected&lt;/p&gt;&lt;p&gt;testingsmartfilters:&lt;/p&gt;&lt;/blockquote&gt;</description>
<guid isPermaLink="true">https://www.multichain.com/qa/11361/reject-transaction-filter-working-before-approvefrom-executed</guid>
<pubDate>Mon, 22 Oct 2018 04:32:47 +0000</pubDate>
</item>
<item>
<title>Issues when applying tx filters</title>
<link>https://www.multichain.com/qa/11316/issues-when-applying-tx-filters</link>
<description>&lt;p&gt;Hi team (possible this is a duplication, as previous one I asked w/o being a member, sr for any inconvenience),&lt;/p&gt;&lt;p&gt;I've been trying to test the latest tx filters by using this &lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/MultiChain/smart-filter-examples/blob/master/transaction-filters/limit-asset-transfer.js&quot;&gt;script&lt;/a&gt;&amp;nbsp;to limit asset for USD, but I had some issues, as below:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;The filter actually filtered out the tx in the strange behaviour, as given, if value &amp;gt; 1000 it will be error, but even when I put 100 or 500, it also rejected the tx&lt;/li&gt;&lt;li&gt;When I approved the tx filters, the blockchain stopped producing new blocks (check with block height), all attempts to start again the chain are not successful&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;Here are the commands I've used:&lt;/div&gt;&lt;div&gt;&lt;table border=&quot;1&quot; cellspacing=&quot;1&quot; cellpadding=&quot;1&quot; style=&quot;width:500px&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;multichain-cli test1 issuefrom 1Cr6VxbSQ5TMfegbUSgY4t1F2ing2QH2yVLgAd 1Cr6VxbSQ5TMfegbUSgY4t1F2ing2QH2yVLgAd '{&quot;name&quot;:&quot;USD&quot;,&quot;open&quot;:true}' 50000 0.01 0 '{&quot;origin&quot;:&quot;us&quot;, &quot;stage&quot;:&quot;01&quot;, &quot;purpose&quot;:&quot;parts prepayment&quot;}'&lt;/p&gt;&lt;p&gt;multichain-cli test1 sendasset 1bND5DeePFNmrWBoeaVn4z6WJiYSQv9jMwSwY7 USD 3000&lt;/p&gt;&lt;p&gt;multichain-cli test1 create txfilter testfilter '{&quot;for&quot;:&quot;USD&quot;}' 'function outputtoaddressbalancechange(output, spent, addressbalancechange) { if (output.assets) { for (var assetnum=0; assetnum&amp;lt;output.assets.length; assetnum++) { if (output.assets[assetnum].name==&quot;USD&quot;) { for (var addressnum=0; addressnum&amp;lt;output.scriptPubKey.addresses.length; addressnum++) { var address=output.scriptPubKey.addresses[addressnum]; if (!addressbalancechange.hasOwnProperty(address)) addressbalancechange[address]=0; var rawchange=spent ? -output.assets[assetnum].raw : output.assets[assetnum].raw; addressbalancechange[address]+=rawchange; } } } } } function filtertransaction() { var tx=getfiltertransaction(); var addressbalancechange={}; for (var inputnum=0; inputnum&amp;lt;tx.vin.length; inputnum++) { outputtoaddressbalancechange(getfiltertxinput(inputnum), true, addressbalancechange); } for (var outputnum=0; outputnum&amp;lt;tx.vout.length; outputnum++) { outputtoaddressbalancechange(tx.vout[outputnum], false, addressbalancechange); } for (var address in addressbalancechange) if (addressbalancechange[address]&amp;gt;1000) return &quot;Address &quot;+address+&quot; is receiving too much USD&quot;; }'&lt;/p&gt;&lt;p&gt;multichain-cli test1 approvefrom 1bND5DeePFNmrWBoeaVn4z6WJiYSQv9jMwSwY7 testfilter true&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p&gt;Do you have any reasons for the strange behavior from the chain?&lt;/p&gt;&lt;p&gt;Thank you for your support,&lt;/p&gt;&lt;p&gt;Best,&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
<guid isPermaLink="true">https://www.multichain.com/qa/11316/issues-when-applying-tx-filters</guid>
<pubDate>Mon, 15 Oct 2018 12:42:39 +0000</pubDate>
</item>
<item>
<title>created smartfilters not appearing on listtxfilters</title>
<link>https://www.multichain.com/qa/11292/created-smartfilters-not-appearing-on-listtxfilters</link>
<description>ubuntu@ip-172-31-8-93:~$ multichain-cli testchain6 testtxfilter {} &amp;quot;function filtertransaction(){ var tx=getfiltertransaction(); if(tx.vout.length &amp;lt;2){ return 'test'; } }&amp;quot;&lt;br /&gt;
&lt;br /&gt;
{&amp;quot;method&amp;quot;:&amp;quot;testtxfilter&amp;quot;,&amp;quot;params&amp;quot;:[{},&amp;quot;function filtertransaction(){ var tx=getfiltertransaction(); if(tx.vout.length &amp;lt;2){ return 'test'; } }&amp;quot;],&amp;quot;id&amp;quot;:&amp;quot;32074384-1539245378&amp;quot;,&amp;quot;chain_name&amp;quot;:&amp;quot;testchain6&amp;quot;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;compiled&amp;quot; : true,&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;reason&amp;quot; : null&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
ubuntu@ip-172-31-8-93:~$ multichain-cli testchain6 create txfilter jeshoanotherfilter {} &amp;quot;function filtertransaction(){ var tx=getfiltertransaction(); if(tx.vout.length &amp;lt;2){ return 'test'; } }&amp;quot;&lt;br /&gt;
&lt;br /&gt;
{&amp;quot;method&amp;quot;:&amp;quot;create&amp;quot;,&amp;quot;params&amp;quot;:[&amp;quot;txfilter&amp;quot;,&amp;quot;jeshoanotherfilter&amp;quot;,{},&amp;quot;function filtertransaction(){ var tx=getfiltertransaction(); if(tx.vout.length &amp;lt;2){ return 'test'; } }&amp;quot;],&amp;quot;id&amp;quot;:&amp;quot;89779756-1539245385&amp;quot;,&amp;quot;chain_name&amp;quot;:&amp;quot;testchain6&amp;quot;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
5778193408cb49a8cb4668c3ab8012a19501c342c5b51b52d05535fa87f88dd1&lt;br /&gt;
&lt;br /&gt;
ubuntu@ip-172-31-8-93:~$ multichain-cli testchain6 listtxfilters&lt;br /&gt;
&lt;br /&gt;
{&amp;quot;method&amp;quot;:&amp;quot;listtxfilters&amp;quot;,&amp;quot;params&amp;quot;:[],&amp;quot;id&amp;quot;:&amp;quot;88301285-1539245388&amp;quot;,&amp;quot;chain_name&amp;quot;:&amp;quot;testchain6&amp;quot;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
[&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;name&amp;quot; : &amp;quot;jeshosfilter&amp;quot;,&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;createtxid&amp;quot; : &amp;quot;ff8a0c7d55d09f3d96fb60ab1d9f74cb09f652b7fae86155f755b5fbd3314e15&amp;quot;,&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;filterref&amp;quot; : &amp;quot;63-266-35583&amp;quot;,&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;language&amp;quot; : &amp;quot;javascript&amp;quot;,&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;codelength&amp;quot; : 100,&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;for&amp;quot; : [&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;],&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;compiled&amp;quot; : true,&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;approved&amp;quot; : true&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
]</description>
<guid isPermaLink="true">https://www.multichain.com/qa/11292/created-smartfilters-not-appearing-on-listtxfilters</guid>
<pubDate>Thu, 11 Oct 2018 08:14:14 +0000</pubDate>
</item>
<item>
<title>Smart Filters and JSON-RPC APIs</title>
<link>https://www.multichain.com/qa/11280/smart-filters-and-json-rpc-apis</link>
<description>Is it possible to use in Smart Filters the standard Multichain APIs, other than those explicitly listed in the page &amp;quot;Working with Smart Filters&amp;quot; (getassetinfo, getblockinfo,...)?&lt;br /&gt;
&lt;br /&gt;
Thanks.</description>
<guid isPermaLink="true">https://www.multichain.com/qa/11280/smart-filters-and-json-rpc-apis</guid>
<pubDate>Tue, 09 Oct 2018 17:53:33 +0000</pubDate>
</item>
<item>
<title>So... Smart Filters!</title>
<link>https://www.multichain.com/qa/11043/so-smart-filters</link>
<description>Once a smart filter (transaction-filter) is approved, is it applied to all transactions on that blockchain from that block onwards?&lt;br /&gt;
&lt;br /&gt;
Please define a callback in layman's terms.&lt;br /&gt;
&lt;br /&gt;
Can one smart filter reference another?&lt;br /&gt;
&lt;br /&gt;
Thanks</description>
<guid isPermaLink="true">https://www.multichain.com/qa/11043/so-smart-filters</guid>
<pubDate>Thu, 13 Sep 2018 22:25:13 +0000</pubDate>
</item>
</channel>
</rss>