0

I saw we can specify multiple txids, but I've never seen such a case. So I wanna make it sure. Thanks

4
  • Can you explain a bit more in detail? Or provide the. Example that you have seen? Do you want to use several inputs to be sent to a single output address? Mar 8, 2018 at 11:44
  • Yeah exactly I want to use several inputs for an output.
    – 西田龍
    Mar 8, 2018 at 16:48
  • Adam provided the answer already :-) Mar 8, 2018 at 20:00
  • I see I thought that it was the way of multi payment
    – 西田龍
    Mar 8, 2018 at 22:21

1 Answer 1

1

Send the command as following:

bitcoin-cli createrawtransaction 
[{"txid":"FIRST_INPUT_TXID","vout":2},    
{"txid":"SECOND_INPUT_TXID", "vout":3}]
{"FIRST_OUTPUT_ADDRESS":0.006, "SECOND_OUTPUT_ADDRESS":0.004}

if it didn't work try to skip quotation (") by adding backslash before it \"

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.