Qaynaq LABS · TOOLS

CRYPTO GLOSSARY

Unspent Transaction Output (UTXO)

A UTXO represents a discrete unit of cryptocurrency that has been received but not yet spent in a blockchain transaction. It is the fundamental building block of how value is tracked and transferred on UTXO-based blockchains like Bitcoin.

Technical definition

In UTXO-based blockchains, funds are not stored as balances in accounts but as discrete outputs from previous transactions. Each UTXO is a tuple containing an amount of cryptocurrency and a locking script (e.g., a public key hash) that specifies the conditions under which the output can be spent. When a transaction is created, it consumes one or more existing UTXOs as inputs and creates new UTXOs as outputs. The sum of input UTXOs must equal or exceed the sum of output UTXOs, with the difference typically representing a transaction fee. This model ensures that all transactions are deterministic and that double-spending is prevented without requiring global state tracking.

An analogy

Think of UTXOs like physical coins in your pocket. Each coin is a separate item with a specific value, and when you spend money, you hand over one or more coins to the recipient. The recipient now holds those coins, and you no longer have them. Similarly, UTXOs are individual 'coins' of cryptocurrency that are transferred between parties in transactions.

Why it matters

The UTXO model provides a transparent and auditable way to track the flow of funds without relying on centralized account balances. It enhances security by making double-spending attacks computationally infeasible and enables simpler verification of transaction validity.

Where it came from

The UTXO model was introduced with Bitcoin in 2009 by Satoshi Nakamoto. It was inspired by earlier cryptographic payment systems like Adam Back's Hashcash and Wei Dai's b-money, which also used unspent transaction concepts to track value.

Example in practice

Alice receives 0.5 BTC from Bob in a transaction. This creates a UTXO of 0.5 BTC locked to Alice's public key. Later, Alice wants to send 0.3 BTC to Charlie. She creates a transaction that spends the 0.5 BTC UTXO (as input) and creates two new UTXOs: one for 0.3 BTC locked to Charlie's public key and another for 0.2 BTC (minus fees) locked back to her own public key as change.

Common misconceptions

  • UTXOs are account balances → Correction: UTXOs are not account balances; they are discrete outputs from transactions that must be spent in their entirety (with change returned).
  • UTXOs are stored on-chain → Correction: UTXOs are not stored as separate entities on-chain; they are derived from the transaction history and validated during transaction processing.

Risks & limitations

  • Transaction bloat: UTXO-based systems can accumulate many small UTXOs over time, leading to larger transaction sizes and higher fees if not managed.
  • Dust attacks: Attackers can send tiny UTXOs to a user's address, clogging their wallet with unspendable outputs that increase transaction complexity.
  • Privacy leaks: UTXO models can reveal transaction patterns if not used carefully, as inputs and outputs are publicly linked on the blockchain.

Related terms

About "Unspent Transaction Output (UTXO)" in crypto

Cryptocurrency vocabulary moves faster than any other technical field. New terms appear weekly, old terms quietly change meaning, and most "definitions" online were written by someone trying to sell you something. Qaynaq Labs' crypto glossary aims for the opposite: neutral, accurate, skeptical explainers that include the downside.

This entry covers the technical mechanics, a real-world analogy, where the concept came from, and what could go wrong. Pair it with the related terms to build a working mental model of how the pieces fit together.

Frequently asked

Can a UTXO be partially spent?

No, a UTXO must be spent in its entirety. If you want to send only part of a UTXO, you must create a new transaction that spends the entire UTXO and returns the excess as change to yourself.

How are UTXOs different from account balances?

In an account-based model (like Ethereum), balances are tracked in accounts, and transactions deduct from or add to these balances. In the UTXO model, funds are tracked as discrete outputs, and transactions consume and create new outputs, making the model more transparent but requiring careful management of inputs and outputs.

Why does Bitcoin use UTXOs instead of account balances?

The UTXO model was chosen for Bitcoin because it simplifies transaction validation, prevents double-spending without requiring global state, and aligns with the decentralized nature of blockchain by avoiding the need for a central ledger of account balances.

Can UTXOs be reused?

Yes, UTXOs can be reused as inputs in future transactions, but each UTXO can only be spent once. Reusing UTXOs is common when creating transactions, but it does not affect their validity.