<p>It is decided by the individual agent initiating the transaction.</p>

<p>The most basic transactions are typically one or two inputs to two outputs which is due to the way Bitcoin keeps track of balances. One output to pay, one output to give change to the sender.</p>

<p>Unspent Bitcoin are stored in chunks, often referred to as "UTXOs." I like to think of it as lumps of gold consisting of various weights: you could have a lump that is 10kg or a lump that is 0.001 grams. When you spend Bitcoin, you have to spend the entire UTXO, but you can save the extra balance by "spending it" as giving yourself change. Imagine if you had two lumps of gold, 2kg and 3kg, and you wanted to pay someone 4kg. You would have to melt the two together, and then split it to be 4kg to pay, and 1kg to save. At the end of the process there are now two new lumps of gold. Bitcoin works in a similar way, spending money requires you alter the money you already have.</p>

<p>It is possible to have a single input go to a single output, but the initiator would have to have a UTXO/lump that was the exact amount that they wanted to pay someone.</p>

<p>At the end of the day you shouldn't have to worry much about these details as a user, your wallet software will handle all the UTXO selection for you.</p>

CC BY-SA 3.0
2017-04-05T23:53:07.703Z
2017-04-05T23:53:07.703Z
Steve Ellis
<p>Transactions are not grouped or collected together in any fashion, unless the sender of every Bitcoin within that transaction agrees to that. CoinJoin is one way of grouping your transaction together with other people.</p>

<p>There is also a proposal called 'MimbleWimble,' which would make it possible to combine many transactions. This has not been implemented, though.</p>

CC BY-SA 3.0
2017-03-31T21:54:16.803Z
Mimblewimble transactions are not constant size.
Pieter Wuille
CC BY-SA 3.0
2017-03-31T21:52:54.883Z
2017-03-31T22:25:17.450Z
2017-03-31T22:25:17.450Z
Nick ODell
<p>When I go to blockchain.info and explore transactions, I see a lot of individual transactions that seem to show bunches of addresses sending to bunches of other addresses.</p>

<p><a href="https://blockchain.info/tx/221668ab11014c34da20296a1607ecc7967d1bdeecb884f1bf163e6b6c9f1d72" rel="nofollow noreferrer">https://blockchain.info/tx/221668ab11014c34da20296a1607ecc7967d1bdeecb884f1bf163e6b6c9f1d72</a></p>

<p>Does the Bitcoin network/protocol control that automatically, or is that done by the individual/agent initiating the transaction? e.g. Let's say I want to send <code>123</code> to <em>one</em> address. Is that going to be grouped into a big transaction involving many people and many recipients (including mine), or is it going to appear in the history as a transaction between strictly two addresses?</p>

<transactions>
Are transactions many-to-many? If so, who decides on the grouping?
GladstoneKeep
# Are transactions many-to-many? If so, who decides on the grouping?

(Asked by: username_0 on 2017-03-31)

When I go to blockchain.info and explore transactions, I see a lot of individual transactions that seem to show bunches of addresses sending to bunches of other addresses.

<https://blockchain.info/tx/221668ab11014c34da20296a1607ecc7967d1bdeecb884f1bf163e6b6c9f1d72>

Does the Bitcoin network/protocol control that automatically, or is that done by the individual/agent initiating the transaction? e.g. Let's say I want to send `123` to *one* address. Is that going to be grouped into a big transaction involving many people and many recipients (including mine), or is it going to appear in the history as a transaction between strictly two addresses?

**Tags:** transactions


---

## 2 answers

### Answer by username_1 on 2017-04-05. Score: 2 | Accepted answer

It is decided by the individual agent initiating the transaction.

The most basic transactions are typically one or two inputs to two outputs which is due to the way Bitcoin keeps track of balances. One output to pay, one output to give change to the sender.

Unspent Bitcoin are stored in chunks, often referred to as "UTXOs." I like to think of it as lumps of gold consisting of various weights: you could have a lump that is 10kg or a lump that is 0.001 grams. When you spend Bitcoin, you have to spend the entire UTXO, but you can save the extra balance by "spending it" as giving yourself change. Imagine if you had two lumps of gold, 2kg and 3kg, and you wanted to pay someone 4kg. You would have to melt the two together, and then split it to be 4kg to pay, and 1kg to save. At the end of the process there are now two new lumps of gold. Bitcoin works in a similar way, spending money requires you alter the money you already have.

It is possible to have a single input go to a single output, but the initiator would have to have a UTXO/lump that was the exact amount that they wanted to pay someone.

At the end of the day you shouldn't have to worry much about these details as a user, your wallet software will handle all the UTXO selection for you.


---

### Answer by username_2 on 2017-03-31. Score: 2

Transactions are not grouped or collected together in any fashion, unless the sender of every Bitcoin within that transaction agrees to that. CoinJoin is one way of grouping your transaction together with other people.

There is also a proposal called 'MimbleWimble,' which would make it possible to combine many transactions. This has not been implemented, though.

> **Comments:**
> **username_3**: Mimblewimble transactions are not constant size.  

---

