Reviewed Aug 2026
DE
BA-05 · LESSON 05

Coin selection

KEY DEFINITIONS

Terms used in this lesson

UTXO
Unspent transaction output: one discrete chunk of bitcoin that can be used as a transaction input.

Wallets trade off fees, privacy, change, consolidation, and future spending cost when selecting UTXOs.

35 min Difficulty 2/5 Not started

Loading lesson visuals...

01

Learn the idea

Coin selection is the wallet process of choosing which UTXOs fund a payment. It balances current fee, change creation, future spending cost, privacy, confirmation status, and policy. Consolidation combines multiple UTXOs, while exact-match selection can avoid change. Linking inputs can reveal that one entity likely controlled them.

GUIDED EXPLANATION1/5 ideas inspected
1

Filter eligible UTXOs

The wallet applies network, confirmation, coin-control, script, timelock, and spendability requirements before optimizing.

Inspect each idea before the worked example.
The worked example follows the explanation

Inspect every idea above to open it.

Important distinctionA wallet should always choose the fewest UTXOs.

Fewer inputs often reduce current fees, but privacy, change, consolidation timing, confirmation needs, and future costs can justify another set.

02
FINISH LEARNING FIRST

The questions unlock after every required learning activity

Inspect every guided idea, open the worked example, rebuild its mechanism, and complete the deterministic lesson tool. Your progress is saved automatically.