How would multiple people send in one transaction?

2

Is it possible to have multiple inputs, from different people?

How would this be set up?

Kyle Graham

Posted 2018-03-15T21:51:24.237

Reputation: 472

I was referring to having multiple inputs from different parties on the actual transaction logKyle Graham 2018-03-15T22:18:29.997

that was a mistake, I misclicked the button 'flag'Osias Jota 2018-03-15T22:20:15.427

Answers

1

Is it possible to have multiple inputs, from different people?

the bitcoin system doesn't know people - it is working with transactions, that move funds from address to address. Still the answer is "yes". You can create transactions, that spend funds from different addresses. To be more specific, we would talk about UTXO, but I think that goes beyond scope of the question, and the developers webpages have enough explanation (see reference below). Exchanges create such transactions all the time, or also faucets. They (can) have multiple inputs, and multiple outputs as well.

How would this be set up?

you would follow the specification :-) A guided example is in the Complex Raw Transaction section of the developer examples.

pebwindkraft

Posted 2018-03-15T21:51:24.237

Reputation: 4 568

Thanks for the help. I was referring to how would two different people with different UTXOs, pool together to pay one person in one transaction? Do they just supply their signature to the input, specifying the output and I add it into my transaction?Kyle Graham 2018-03-19T15:40:42.750

It is possible. Bitcoin does not know "people". I try to abstract from your scenario: person a and person b want to pay person c some funds in one transaction. There are two ways to achieve: either both create the transaction together, so that there are two v_ins, and one v_out section (but I am not aware of any software which does this, so they'd have to do that manually, with all dependencies on previous tx, previous outpoint, field length...), or both use a multisig tx. The latter allows two people to send funds to a third person, and there are already some wallets supporting this concept.pebwindkraft 2018-03-19T19:41:40.833

You hit the nail on the head. The first scenario is what I was referring to. Because no software does it as of yet, I was confused as to how it was possible. Doing it the former way would require an element of trust. Unles there is a way to do it, where I take your signed input and add it to my signed input to make a transaction to said output. Thank you for the clarityKyle Graham 2018-03-19T21:12:00.983