What Is an Unspent Transaction Output (UTXO)?
An Unspent Transaction Output (UTXO) refers to the remaining amount of cryptocurrency left after a specific transaction. Each cryptocurrency transaction consists of inputs and outputs. When a transaction is executed, the inputs are consumed, and new outputs are generated. Any output not immediately spent becomes a UTXO, which can be used in future transactions.
The UTXO model operates similarly to cash transactions, where you must spend the entire amount and receive the remaining balance as change. For example:
- If you buy a $20 book with a $50 bill, you receive $30 in change.
- In crypto, you can't send a specific amount directly from a UTXO. Instead, the entire UTXO is spent, and the remaining balance is returned as a new UTXO.
Practical Example:
Bob wants to send Alice 2 BTC but only has a 5 BTC UTXO in his wallet. The transaction breaks down as:
- 5 BTC UTXO is spent entirely.
- 2 BTC is sent to Alice.
- 2.99 BTC is returned to Bob as a new UTXO (change).
- 0.01 BTC is paid as a miner fee.
Why Is the UTXO Model Important?
- Tracking Token Supply: UTXOs help verify the total circulating supply in a network.
- Fraud Prevention: Each UTXO requires owner verification via a digital signature, preventing unauthorized spending.
- Transparency: Every transaction is recorded on the blockchain, ensuring auditability.
UTXO vs. Account Balance Model
| Feature | UTXO Model (Bitcoin) | Account Balance Model (Ethereum) |
|---|---|---|
| Structure | Transactions split into inputs/outputs | Tracks balances per account |
| Storage Efficiency | Requires less storage (optimized for scaling) | Needs more storage for large data blocks |
| Security | Considered more secure due to discrete UTXOs | Relies on continuous balance checks |
| Flexibility | Complex for smart contracts | Better suited for smart contract execution |
Key Differences:
- Bitcoin: Uses UTXOs to manage transactions hierarchically.
- Ethereum: Employs account balances for simpler smart contract handling.
FAQ Section
1. Can UTXOs be reused?
No. Once a UTXO is spent, it’s removed from the pool, and new UTXOs are created as change.
2. How does the UTXO model enhance privacy?
It obscures transaction links by breaking funds into multiple UTXOs, making tracing harder.
3. What happens if a UTXO is too small?
Tiny UTXOs (dust) may become uneconomical to spend due to high miner fees relative to their value.
4. Why doesn’t Ethereum use UTXOs?
Account models simplify state management for smart contracts, though they sacrifice some privacy.
5. How do wallets track UTXOs?
Wallets aggregate UTXOs to display your total balance and select inputs for new transactions.
👉 Learn more about blockchain fundamentals
👉 Master crypto security with Ledger