how to create txid and vout for createrawtransaction

+1 vote
createrawtransaction has txid and vout parameters, how can i get txid and vout
asked Nov 1, 2017 by Darwin

1 Answer

+1 vote

A txid+vout combination refers to an output of a previous transaction. You can use the listunspent API to see which outputs are available in the wallet and have not yet been spent. However for general raw transaction building we recommend using createrawsendfrom which takes cares of selecting the unspent outputs for you, and adding a change output to the new transaction to ensure there's an unspent output available for the next time.

answered Nov 2, 2017 by MultiChain
...