Reviewed Aug 2026
DE
BA-05 · LESSON 02

Inputs, outputs, and change

KEY DEFINITIONS

Terms used in this lesson

Outpoint
A transaction ID plus output number that identifies one exact prior output.
Witness
Signatures, scripts, or other data supplied to satisfy a Bitcoin output’s spending condition.
UTXO
Unspent transaction output: one discrete chunk of bitcoin that can be used as a transaction input.
Transaction ID
The identifier produced by hashing a Bitcoin transaction’s non-witness serialization.
Identifier
Identifier: a value used to distinguish one request, object, or participant from another.

Inputs reference prior outpoints and provide witnesses; outputs assign values to new locking conditions.

45 min Difficulty 2/5 Not started

Loading lesson visuals...

01

Learn the idea

A Bitcoin transaction input identifies one earlier output by its transaction ID and output index, a pair called an outpoint. The input supplies unlocking witness data and fields such as sequence. A transaction output creates a new amount in satoshis plus a locking script. Change is simply a new output controlled by the spender, not money left inside an input.

GUIDED EXPLANATION1/5 ideas inspected
1

Select complete UTXOs

A wallet chooses exact unspent outputs. Each selected output will be consumed in full if the transaction confirms.

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

Inspect every idea above to open it.

Important distinctionThe larger input is reduced by the payment and the smaller input remains untouched.

Every referenced input is consumed whole. The transaction explicitly creates any retained value as change.

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.