restrictions param

+2 votes

Must the restrictions param of crate method be '{}' when type = txfilter/streamfilter?

asked Mar 21, 2019 by mcuser
edited Mar 24, 2019 by mcuser

1 Answer

0 votes

For stream filters, restrictions must be the empty object: {}

For transaction filters, you can pass one or more asset/stream names/refs in order to only apply the filter to transactions which make reference to one of those assets or streams, e.g.:

{"for":["asset1","stream1","stream2"]}

answered Mar 25, 2019 by MultiChain
...