<p>By definition of a bitcoin transaction, each of the outputs have all inputs as a part of their history. There is no way to trace which input contributes to which output, because all inputs contribute to all outputs equally.</p>
<p>Now, if the transaction is from multiple owners and requires multiple signatures, you could say that each of the signers of the tx only signs when the overall tx adds to addresses they control, and in that way, certain inputs lead to certain outputs.</p>
<p>In that sense, if the construction of the tx itself was done publicly, you could listen for data as it is being constructed by communication among the peers in the tx. However, such coordination is usually done for privacy purposes, under a black-box coordinator, so such data would not be observable.</p>
<p>In terms of data that actually is put on the blockchain, there would be no way to reverse engineer any more granular of a construction than the list of inputs and outputs.</p>

CC BY-SA 4.0
2021-08-26T15:32:21.933Z
2021-08-26T15:32:21.933Z
hedgedandlevered
<p>There is no one-to-one relationship between inputs and outputs.</p>
<blockquote>
<p>&quot;Bitcoins are recast with every spend&quot;.</p>
</blockquote>
<p>Bitcoins are held in <em>unspent transaction outputs (UTXOs)</em>. An transaction input references a specific UTXO and consumes it. In the same step, these &quot;ephemeral&quot; bitcoins are then used to create new UTXOs. There is no direct link between specific inputs and outputs beyond them all being defined in one transaction: all UTXOs consumed in a transaction were predecessors of all UTXOs created by that transaction. There is generally no &quot;from-address&quot; in Bitcoin, both in the sense that it often cannot be narrowed down to a single one as well as the fact that the instigator of the transaction may not control the addresses associated with the UTXOs being spent e.g. when sending from a custodial account.</p>
<p>There are some <a href="https://en.bitcoin.it/wiki/Privacy#Blockchain_attacks_on_privacy" rel="nofollow noreferrer">tracking approaches that use heuristics</a> e.g. to make guesses whether outputs assigned funds to a receiver or the sender, but those apply more to the transaction graph than the input-output relationship and often only confer probabilities.<br />
Some non-standard transactions do reveal a bit more information, e.g. in a <code>SIGHASH_SINGLE</code> transaction an input only commits to one specific output. But on the other hand, there are also more ways to create multiparty transactions that break the common-ownership heuristic as well.</p>

CC BY-SA 4.0
2021-08-26T17:20:59.097Z
2021-08-26T17:20:59.097Z
Murch
<p>I'm trying to analyze transaction data and wondering if there's a way to tell how much was transferred from one wallet address to another when there are multiple inputs and outputs for one transaction.</p>
<p>For example, the transaction data looks like this</p>
<pre><code>      Hash        Input_Addresses        Output_Addresses      Input_Amounts      Output_Amounts
a77c56410e71...  [Address1, Address2]   [Address3, Address4]  [0.5BTC, 1.5BTC]  [1.1BTC,  0.9BTC]
</code></pre>
<p>In this transaction, there were two inputs and two outputs. Address1 paid 0.5 BTC and Address2 Paid 1.5 BTC.  Address3 received 1.1 BTC and Address4 received 0.9 BTC.</p>
<p>Is there any way to tell how much of the 1.1 BTC Address3 received was actually from Address1 or Address2? The total amount of input matches the total amount of output, which is 2 BTC (please ignore the transaction fee for the calculation) but I wonder if it's possible to trace which wallet the individual output amounts are from.</p>
<p>If it's possible, what data should I look at to trace those flows?</p>

CC BY-SA 4.0
2021-08-26T15:43:22.530Z
Relevant https://bitcoin.stackexchange.com/questions/450/is-there-any-way-to-track-an-individual-bitcoin-or-satoshi
voneiden
<transactions><address><tracking>
Trace Bitcoin Fund Flows When There Are Multiple Input and Output Addresses
Sarah Grimes
# Trace Bitcoin Fund Flows When There Are Multiple Input and Output Addresses

(Asked by: username_0 on 2021-08-26)

I'm trying to analyze transaction data and wondering if there's a way to tell how much was transferred from one wallet address to another when there are multiple inputs and outputs for one transaction.

For example, the transaction data looks like this

```
      Hash        Input_Addresses        Output_Addresses      Input_Amounts      Output_Amounts
a77c56410e71...  [Address1, Address2]   [Address3, Address4]  [0.5BTC, 1.5BTC]  [1.1BTC,  0.9BTC]

```

In this transaction, there were two inputs and two outputs. Address1 paid 0.5 BTC and Address2 Paid 1.5 BTC. Address3 received 1.1 BTC and Address4 received 0.9 BTC.

Is there any way to tell how much of the 1.1 BTC Address3 received was actually from Address1 or Address2? The total amount of input matches the total amount of output, which is 2 BTC (please ignore the transaction fee for the calculation) but I wonder if it's possible to trace which wallet the individual output amounts are from.

If it's possible, what data should I look at to trace those flows?

**Tags:** transactions, address, tracking

> **Comments:**
> **username_1**: Relevant https://bitcoin.stackexchange.com/questions/450/is-there-any-way-to-track-an-individual-bitcoin-or-satoshi  

---

## 2 answers

### Answer by username_2 on 2021-08-26. Score: 3 | Accepted answer

By definition of a bitcoin transaction, each of the outputs have all inputs as a part of their history. There is no way to trace which input contributes to which output, because all inputs contribute to all outputs equally.

Now, if the transaction is from multiple owners and requires multiple signatures, you could say that each of the signers of the tx only signs when the overall tx adds to addresses they control, and in that way, certain inputs lead to certain outputs.

In that sense, if the construction of the tx itself was done publicly, you could listen for data as it is being constructed by communication among the peers in the tx. However, such coordination is usually done for privacy purposes, under a black-box coordinator, so such data would not be observable.

In terms of data that actually is put on the blockchain, there would be no way to reverse engineer any more granular of a construction than the list of inputs and outputs.


---

### Answer by username_3 on 2021-08-26. Score: 1

There is no one-to-one relationship between inputs and outputs.

> "Bitcoins are recast with every spend".

Bitcoins are held in *unspent transaction outputs (UTXOs)*. An transaction input references a specific UTXO and consumes it. In the same step, these "ephemeral" bitcoins are then used to create new UTXOs. There is no direct link between specific inputs and outputs beyond them all being defined in one transaction: all UTXOs consumed in a transaction were predecessors of all UTXOs created by that transaction. There is generally no "from-address" in Bitcoin, both in the sense that it often cannot be narrowed down to a single one as well as the fact that the instigator of the transaction may not control the addresses associated with the UTXOs being spent e.g. when sending from a custodial account.

There are some [tracking approaches that use heuristics](https://en.bitcoin.it/wiki/Privacy#Blockchain_attacks_on_privacy) e.g. to make guesses whether outputs assigned funds to a receiver or the sender, but those apply more to the transaction graph than the input-output relationship and often only confer probabilities.  
Some non-standard transactions do reveal a bit more information, e.g. in a `SIGHASH_SINGLE` transaction an input only commits to one specific output. But on the other hand, there are also more ways to create multiparty transactions that break the common-ownership heuristic as well.


---

