How create a filter who forbiden transaction if the adress reach max asset unit ?

+2 votes
Hi !
Is it possible to put a limit on the maximum number of asset that an address can have?
For example I have a total of 20 PCs and I want each node to have only 5 maximum at the same time.
Is it possible to make this limitation with smart filter?
asked Mar 4 by Pierrick S
edited Mar 5 by MultiChain

1 Answer

0 votes
I'm afraid you could not apply exactly this rule using smart filters, since they do not refer to the global state of an address in this way. You can implement limits on how much an address can spent in a period of time, but not how much an address can receive. See for example: https://github.com/MultiChain/smart-filter-examples/blob/master/transaction-filters/approve-asset-transfer.js
answered Mar 5 by MultiChain
...