21 BTC

UTXO (unspent transaction output)

Updated Reviewed articleRandom article
In plain words

Bitcoin has no account balances. Your wallet holds separate “coins” called UTXOs, like notes in a purse; a payment spends some of them and creates new ones, including change back to you.

Short definition

Unspent transaction output: a "coin" your wallet can spend. Your balance is the sum of your UTXOs.

The model

A transaction lists inputs, each pointing to an earlier unspent output, and creates new outputs, each with an amount and a locking script (usually an address). Inputs are spent in full: paying 0.3 BTC from a 1 BTC output creates a 0.3 BTC output for the recipient and about 0.7 BTC of change, minus the fee.

The fee is simply inputs minus outputs. Every node keeps the set of all unspent outputs (the UTXO set) to check that nothing is spent twice.

Why it matters to users

Fees depend on transaction size, and size grows with the number of inputs: many tiny UTXOs are expensive to spend when fees are high. Combining UTXOs also links them publicly, which is why privacy-minded users practise coin control.

Glossary

See also

References

  1. Bitcoin developer guide: transactions developer.bitcoin.org
  2. Satoshi Nakamoto, Bitcoin: A Peer-to-Peer Electronic Cash System (2008) bitcoin.org