0 votes
Creates a transaction spending the specified inputs, sending to the given addresses. In Bitcoin Core, each amount field is a quantity of the bitcoin currency. For MultiChain, an{"asset":qty, ...} object can be used for amount, in which each asset is an asset name, ref or issuance txid, and each qty is the quantity of that asset to send (see native assets). Use "" as the asset inside this object to specify a quantity of the native blockchain currency.

Could you please give me an example of how one whole line for this command would look like.

Lets say asset name is asset1 and amount is 1234. i tried various different things but i cant seem to get it to work.

asked Mar 11, 2016 by Bob

1 Answer

0 votes

Unless you want to get into the details of exactly how a transaction is built, and control which previous transaction output it spends, you shouldn't use this command. Instead, use one of the higher level APIs such as sendassettoaddress which choose the previous outputs for you.

answered Mar 11, 2016 by MultiChain
I would also like to use createrowtransactions, since u suggested it as a solution for one of my problems, so if u could give an example of how it's done the right way, I would be grateful.
OK, here's an example:

multichain-cli chain1 createrawtransaction '[{"txid":"228bd4cb0e5b99f19c1bce05c23d29e0a73abb0d40b49b250acc632070e36ae1","vout":0}]' '{"15TJEBYY8b2QpNWLHy4116D6uhn2mGFD5m":{"asset1":125}}'