6

Using, e.g., the Bitcoin Core command line, how could I spend bitcoins from multiple wallets in a single transaction?

This comment says:

instead of sending the transaction to the network, you send it to the next person who will add their inputs and outputs and sign them as well, and so on. The last person would then broadcast the transaction on the network.

I assume I use createrawtransaction and signrawtransaction somehow, but how exactly do I actually do this?

cf. Mastering Bitcoin (1st ed.), §"Using Bitcoin Core’s JSON-RPC API from the Command Line", §§"Creating, Signing, and Submitting Transactions Based on Unspent Outputs"

  • ...Or spend bitcoins from multiple wallets in a single transaction with any tool. – zylstra Jan 31 '18 at 8:38
  • 1
    @zylstra thanks. I've generalized my question. – Geremia Jan 31 '18 at 16:00
-1

That's techinally not possible. Not yet. And I don't think it will ever be possible unless you are the developer of this system. Butcoin and other crypto currency a tunnel visioned when it comes to transactions. Better Watch out.

  • This is incorrect. At a purely technical level, you could absolutely create an unsigned transaction, and sign the relevant inputs using keys from each wallet. To my knowledge, Bitcoin Core does not provide a easy method to do that, so it may require chaining multiple rpc calls – Raghav Sood Nov 27 '18 at 14:05
-2

I haven't checked the Bitcoin-core command when it comes to Withdraw all balances from all wallets in a single transaction - But I do know is the structure and the flow of it, I assume it's the same (THIS IS NOT THE ANSWER, THIS IS ONLY A LOGICAL FLOW) :

/api/v2/withdraw_from_addresses/?api_key=API KEY&from_addresses=ADDRESS1,ADDRESS2,...&to_addresses=ADDRESS1,ADDRESS2,...&amounts=AMOUNT1,AMOUNT2,...&pin=SECRET PIN

Code is from block.io

protected by Community Mar 7 at 1:41

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

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