Bitcoin’s blocks are history and its unspent outputs are the present. A node validating a new transaction does not search the chain; it looks up each input in a database of everything currently spendable — the chainstate — and that database is the one thing a node cannot do without.
Understanding its economics explains several design choices that look arbitrary from outside, including why witness data costs a quarter of what an output costs.
Why can’t the set be pruned?
Because it is not a record of what happened. It is the state.
Old blocks can be discarded once their contents are folded in, which is what a pruned node does: it validates everything, updates the set, and deletes the block files. What it keeps is the set, because the next transaction to arrive will spend something, and the only way to know whether that something exists and is unspent is to hold a list of everything that exists and is unspent.
The asymmetry in cost follows directly. Bitcoin Core’s own assumptions put the chain at around 897 GB and the chainstate at about 14 GB. The first number is large and optional. The second is small and mandatory, and it has to be fast, because every input of every transaction is a lookup in it.
That is the sense in which an output is the most expensive thing a transaction can create. A signature is verified once and may then be forgotten. An output must be carried by every node, in its working database, until somebody spends it — which may be never.
What is actually stored per output?
Less than people expect, and the encoding has been squeezed hard.
Each entry holds the amount, the output script, the height of the block that created it, and whether it came from a coinbase. Amounts use a compressed encoding exploiting the fact that most are round numbers, and common script types are stored as a type byte plus the key or hash rather than as the full script.
Bitcoin Core also reports a bogosize — a deliberately
implementation-independent size measure, so that comparisons between
nodes and over time mean something regardless of how any particular
database lays bytes out. Actual disk usage is reported separately. The
distinction matters whenever someone quotes a growth figure: the two
numbers diverge, and only one of them describes the protocol rather than
the implementation.
Who pays for an output?
The creator, once, at the current fee rate. Everyone else, forever, for free.
This is the externality at the centre of several Bitcoin design arguments. The person creating an output pays for the bytes it occupies in a block. The storage it then consumes in every node’s chainstate, for as long as it goes unspent, is borne by people who had no say in it and receive nothing.
SegWit’s discount was an attempt to price this. Witness data counts one weight unit per byte and everything else counts four, on the reasoning that a node may discard witness data after validating while an output must be kept. The four-to-one ratio was a judgement made in 2017 and has never been revisited against measurement, but the direction is right: the cheap byte is the one that does less lasting damage.
Dust is the pathological case. An output too small to be worth spending will probably never be spent, so it occupies the set permanently while contributing nothing. Relay policy refuses to forward transactions creating such outputs — not because they are invalid, but because the network declines to carry the cost.
What makes it grow or shrink?
Outputs created minus outputs spent, which responds to fees in the opposite direction from intuition.
When fees are low, consolidation is cheap, and wallets spending many small inputs into one output shrink the set. When fees are high, wallets use the fewest inputs they can and leave the rest for later, so the set grows. The period when block space is most contested is also the period when the permanent state is expanding fastest, which is an unfortunate alignment nobody designed.
Usage patterns matter more than transaction count. Exchanges batching withdrawals create one input and many outputs; a consolidation creates many inputs and one output. Two periods with identical transaction counts can move the set in opposite directions.
What the set does not track is loss. An output whose key is gone is indistinguishable from one whose owner is simply patient, and both sit there forever. A meaningful fraction of the set is coins nobody can move, and no node can tell which.
How does the set shape a wallet’s behaviour?
More than most users realise, and in ways that surface as confusing balances.
A wallet’s balance is the sum of outputs it controls, and what it can actually send is smaller, because every input it spends costs fee. An output worth less than its own input fee contributes nothing; one worth slightly more contributes slightly. So a wallet showing a balance can be unable to send most of it at a high fee rate, and the gap widens exactly when fees rise.
This is also why coin selection is economically interesting rather than a detail. A wallet that consumes many inputs during a quiet week is converting a liability into a single clean output at a discount; one that avoids consolidation forever accumulates a collection of outputs that become steadily more expensive to use.
The set-level and wallet-level incentives happen to align here, which is unusual. Consolidating is cheaper for the user and smaller for every node, and the only cost is privacy, since combining outputs links them permanently. That tension — cheaper and smaller against more linkable — has no technical resolution and is a choice the user has to make knowingly.
Can the set be audited?
Yes, and the audit is better than most people realise.
A node can hash its entire unspent output set into a single commitment, which is what makes snapshots verifiable against a value shipped in the software. It can also total the amounts, which is the supply check — a number derived from your own disk rather than read from a publisher.
With the optional coin statistics index, a node tracks more than the total. It separately accumulates the subsidy paid out, the coins in the genesis block that were never spendable, the two coinbase outputs made permanently unspendable by an early rule, the amounts sent to provably unspendable scripts, and the block rewards miners never claimed. Subtract those and you have the actual spendable supply, computed locally, with every deduction itemised.
That is an unusually honest piece of accounting for any financial system, and almost nobody runs it.
Is there a way out of holding it?
One serious proposal, which replaces storage with proofs.
Utreexo represents the set as a hash accumulator — a few kilobytes of roots instead of gigabytes of entries. A node holding only the roots cannot look an output up, so every transaction must arrive accompanied by a proof that its inputs are in the set, supplied by bridge nodes that do keep the full data.
The trade is storage for bandwidth and for a new role in the network. Validation stays complete: a proof either verifies against the accumulator or it does not, and nobody is trusted. What changes is that ordinary nodes depend on bridges to supply proofs, which is a dependency the current design does not have.
It has been specified and implemented outside Bitcoin Core and is not deployed. Whether it ever is depends on whether chainstate growth becomes painful enough to pay the cost, which is the same calculation behind most things in Bitcoin’s queue.
Check it yourself
The whole set, summarised from your own disk:
bitcoin-cli gettxoutsetinfo
txouts is how many unspent outputs exist. total_amount is the supply.
bogosize is the implementation-independent measure to compare over
time, and disk_size is what it costs you specifically. Expect the call
to take a while; it reads everything.
For the itemised version, the node needs -coinstatsindex=1 set and
built, after which the same call reports the unspendable categories
separately. Comparing total_amount against the issuance schedule, with
the unspendable amounts subtracted, is the most complete audit of
Bitcoin’s supply that exists, and it runs on a laptop.
What remains uncertain
Whether growth becomes a real constraint. The chainstate is small today relative to consumer hardware and it only grows. There is no mechanism that shrinks it other than people spending their coins, and lost outputs never will be. Nobody has published a projection worth relying on, because it depends on usage patterns rather than on time.
How well chosen the four-to-one discount is. It prices witness bytes against output bytes using a ratio chosen once, without measurement, and every subsequent argument about data in the chain has run into it. A revisit would be a consensus change, so it is not going to happen for a pricing improvement alone.
What becomes of the accumulator proposals. Utreexo works and solves a problem that is not yet urgent. The risk is the usual one: by the time the problem is urgent, the appetite for a change of that size may be lower than it is now.