Login
Register
All Activity
Questions
Unanswered
Tags
Users
Ask a Question
Welcome to the Developer Q&A for the
MultiChain
blockchain platform.
Please feel free to ask questions about the platform to receive answers from the MultiChain developers or other members of the community.
Related questions
Stream Smart Filter: Is the file still kept in storage if invalid?
Github transaction filter example: Approve Asset Transfer, I'm not able to understand this code?
How can i apply smart filter to issuemore transaction?
How to access JavaScript Class "Date" in a Stream Filter?
smart filter and smart transaction tutorial
4,156
questions
4,369
answers
5,718
comments
Most popular tags
multichain
streams
assets
stream
transactions
json-rpc
blockchain
wallet
permissions
error
address
raw-transactions
asset
mining
node
api
issue
multichain-explorer
nodes
connect
multichaind
multisig
transaction
smart-filters
metadata
private-key
atomic-exchange
multichain-cli
multichain-web-demo
data
connection
performance
blocks
demo
web
json
database
storage
native-currency
bitcoin
private-blockchain
network
fee
smart-contracts
wallets
signrawtransaction
off-chain
exchange
multiple-nodes
getnewaddress
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?
smart-filters
asked
Mar 4, 2019
by
Pierrick S
edited
Mar 5, 2019
by
MultiChain
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
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, 2019
by
MultiChain
Please
log in
or
register
to add a comment.
...