<p>Transactions are money orders to the Bitcoin network that reassign value from one owner to another. To that end, transactions reference pieces of Bitcoin in the <em>inputs</em> and reassign this value to recipients in <em>outputs</em>. When the transaction is accepted on the network, the pieces of Bitcoin referenced in the inputs are spent and new "<strong>unspent</strong> transaction outputs" (UTXO) are created according to the transaction's outputs. UTXO are how every participant in the network keeps track of where the money in the network is. UTXO are not only created for change, but any time a transaction defines a recipient. UTXO are spent whenever they get used as a transaction input. However, even so the transaction remains part of the blockchain and everyone can look up later where the transaction output was created and (eventually) spent.</p>

<p>Therefore, after a UTXO is spent, it's still a transaction output (TXO), but no longer a UTXO.</p>

<p>Take this example:</p>

<pre><code>Input(utxo1)               Recipient Output
                 ----&gt; 
Input(utxo2)               Change Output
</code></pre>

<p>When the transaction is created, it spends the two UTXO referenced in the inputs. As the transaction is confirmed, every participant removes them from their UTXO database. However, the reference still exists in the blockchain as the outputs of the transactions that created those UTXOs. The transaction also creates two new UTXOs, the <code>Recipient Output</code> and the <code>Change Output</code>. Every participant in the network adds these two UTXO to their database. Let's say that the sender spends the money in the change output quickly thereafter, removing the change output from the UTXO database, but the recipient TXO remains unspent. In that case, (or any other where at least one of the two outputs remains unspent) the transaction would be counted in the "Total Transactions With Unspent Outputs".</p>

CC BY-SA 3.0
2017-10-30T13:07:14.320Z
your answer is correct, just lacks a [detail](https://bitcoin.stackexchange.com/questions/12451/are-bitcoin-transactions-permitted-to-have-no-outputs-i-e-all-inputs-become-tr); just for the sake of completeness: the single UTXO needed by a transaction can be 0 and the tx still won't invalidate the block containing it.
vv01f
CC BY-SA 3.0
2017-10-30T13:14:28.530Z
@vv01f: Your comment is correct, but really the information that a transaction has to have at least one output and more so the special case that the amount of that output could be zero are not necessary to answer the question. I've therefore removed the first sentence. ;)
Murch
CC BY-SA 3.0
2017-11-01T11:25:48.133Z
I don't get it. Maybe I need someone to explain it to me slowly and with more details. I will mark the question as answered because you guys seem to understand it.
Eva
CC BY-SA 3.0
2017-11-01T14:37:23.323Z
@Kibou: I've extended my answer a bit. I hope it is clearer now. If you have any question, please ask for clarification here in the comments.
Murch
CC BY-SA 4.0
2020-01-02T01:51:08.257Z
I had a problem how UTXO simplifies the blockchain account. It removes the transaction which indicates transfer back to originator of transaction. I think my problem gets answered because of "When the transaction is created, it spends the two UTXO referenced in the inputs. As the transaction is confirmed, every participant removes them from their UTXO database. "
user2994783
CC BY-SA 4.0
2020-01-02T03:45:00.330Z
@user2994783: I'm not sure I get your first two sentences. Could you rephrase that if you have an open question?
Murch
CC BY-SA 3.0
2017-10-30T10:50:43.407Z
2018-01-15T18:25:52.133Z
2018-01-15T18:25:52.133Z
Murch
<p>I am trying to understand how UTXO works. I came up with these charts <a href="https://statoshi.info/dashboard/db/unspent-transaction-output-set" rel="nofollow noreferrer">https://statoshi.info/dashboard/db/unspent-transaction-output-set</a> </p>

<p>I don't understand why the 1st chart (total Tx's with unspent output). As I understand it, the UTXO represents the "change" you keep after sending some funds. </p>

<p>Using this logic all Tx's should have a UTXO, right? As any time I send money to someone else, it should be an output for the remaining balance.</p>

CC BY-SA 3.0
2017-10-30T12:59:07.833Z
all transactions have outputs. transaction without at least one output is not valid. but not each output (txo) is unspent (utxo)
amaclin
<transactions><utxo>
Do all Tx's have UTXO?
Eva
# Do all Tx's have UTXO?

(Asked by: username_0 on 2017-10-30)

I am trying to understand how UTXO works. I came up with these charts <https://statoshi.info/dashboard/db/unspent-transaction-output-set>

I don't understand why the 1st chart (total Tx's with unspent output). As I understand it, the UTXO represents the "change" you keep after sending some funds.

Using this logic all Tx's should have a UTXO, right? As any time I send money to someone else, it should be an output for the remaining balance.

**Tags:** transactions, utxo

> **Comments:**
> **username_1**: all transactions have outputs. transaction without at least one output is not valid. but not each output (txo) is unspent (utxo)  

---

## 1 answers

### Answer by username_2 on 2017-10-30. Score: 8 | Accepted answer

Transactions are money orders to the Bitcoin network that reassign value from one owner to another. To that end, transactions reference pieces of Bitcoin in the *inputs* and reassign this value to recipients in *outputs*. When the transaction is accepted on the network, the pieces of Bitcoin referenced in the inputs are spent and new "**unspent** transaction outputs" (UTXO) are created according to the transaction's outputs. UTXO are how every participant in the network keeps track of where the money in the network is. UTXO are not only created for change, but any time a transaction defines a recipient. UTXO are spent whenever they get used as a transaction input. However, even so the transaction remains part of the blockchain and everyone can look up later where the transaction output was created and (eventually) spent.

Therefore, after a UTXO is spent, it's still a transaction output (TXO), but no longer a UTXO.

Take this example:

```
Input(utxo1)               Recipient Output
                 ----> 
Input(utxo2)               Change Output

```

When the transaction is created, it spends the two UTXO referenced in the inputs. As the transaction is confirmed, every participant removes them from their UTXO database. However, the reference still exists in the blockchain as the outputs of the transactions that created those UTXOs. The transaction also creates two new UTXOs, the `Recipient Output` and the `Change Output`. Every participant in the network adds these two UTXO to their database. Let's say that the sender spends the money in the change output quickly thereafter, removing the change output from the UTXO database, but the recipient TXO remains unspent. In that case, (or any other where at least one of the two outputs remains unspent) the transaction would be counted in the "Total Transactions With Unspent Outputs".

> **Comments:**
> **username_3**: your answer is correct, just lacks a [detail](https://bitcoin.stackexchange.com/questions/12451/are-bitcoin-transactions-permitted-to-have-no-outputs-i-e-all-inputs-become-tr); just for the sake of completeness: the single UTXO needed by a transaction can be 0 and the tx still won't invalidate the block containing it.  
> **username_2**: @username_3: Your comment is correct, but really the information that a transaction has to have at least one output and more so the special case that the amount of that output could be zero are not necessary to answer the question. I've therefore removed the first sentence. ;)  
> **username_0**: I don't get it. Maybe I need someone to explain it to me slowly and with more details. I will mark the question as answered because you guys seem to understand it.  
> **username_2**: @Kibou: I've extended my answer a bit. I hope it is clearer now. If you have any question, please ask for clarification here in the comments.  
> **username_4**: I had a problem how UTXO simplifies the blockchain account. It removes the transaction which indicates transfer back to originator of transaction. I think my problem gets answered because of "When the transaction is created, it spends the two UTXO referenced in the inputs. As the transaction is confirmed, every participant removes them from their UTXO database. "  
> **username_2**: @username_4: I'm not sure I get your first two sentences. Could you rephrase that if you have an open question?  

---

