Hi all, I am newbie with bitcoin. I am trying execute createrawtransaction function. But I can't see what each params are. In manual
--------------------
createrawtransaction [{"txid":txid,"vout":n},...] {address:amount,...}
Create a transaction spending given inputs (array of objects containing transaction outputs to spend), sending to given address(es). Returns the hex-encoded transaction in a string. Note that the transaction's inputs are not signed, and it is not stored in the wallet or transmitted to the network.
Also note that NO transaction validity checks are done; it is easy to create invalid transactions or transactions that will not be relayed/mined by the network because they contain insufficient fees.
-------------------
but I can't understand what is txid,
txid = transaction ID, e.g. 2c43f351a43be08df9efe38ac040d73e757593b2c43aba48cf016dd7dc433b1b
link:
https://www.blocktrail.com/BTC/tx/2c43f351a43be08df9efe38ac040d73e757593b2c43aba48cf016dd7dc433b1bvout.
Is the ID of of the output of the transaction. A transaction can have more than one output, thus you need to point at which output exactly you want to spend.
What mean address:amount,
address refers to the address of the receiving party
amount refers to the amount of bitcoins you want to transfer. Keep in mind that the sum of all inputs will be spend even if your output is smaller. Whatever is left will go to the miners as fee. Thus 1x 2 BTC input, 1x 1 BTC output = 1 BTC fee.
what meaning ",...".
etc.
It means there is no limit of the number of outputs you can create or the number of inputs you can use.
I would appreciate for help.