Using sendtoaddress with assets

+1 vote
Is the command sendtoaddress supported? What's the syntax as there are more than one asset now. Can this be used instead of sendassettoaddress?

Isn’t the sendtoaddress "comment" field similar to the transaction metadata introduced in this release?
asked Sep 15, 2015 by anonymous

1 Answer

0 votes

Yes, in the latest alpha instead of the amount parameter you can use syntax like this:

sendtoaddress <bitcoinaddress> '{"asset1":100, "asset2":200}'

No, comment fields are not related to transaction metadata - it's an internal record for that node only. See the latest Getting Started page for an example of how to send a transaction with metadata. 

answered Sep 15, 2015 by MultiChain