0

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

  • 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? – pebwindkraft Mar 8 '18 at 11:44
  • Yeah exactly I want to use several inputs for an output. – 西田龍 Mar 8 '18 at 16:48
  • Adam provided the answer already :-) – pebwindkraft Mar 8 '18 at 20:00
  • I see I thought that it was the way of multi payment – 西田龍 Mar 8 '18 at 22:21
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 \"

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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