CuvexACADEMY

M02 · Edition 0.1

UTXOs and transaction change

Free · no registration

Objective

Read a transaction in terms of the outputs it spends and creates.

Understanding the topic

A UTXO is an output of a previous transaction that remains unspent. A wallet calculates its balance by identifying the outputs it can control. There is no universal account that gets debited like a bank ledger. An input refers to a previous output by transaction ID and output position.

A UTXO is spent in full. To pay less than its value, you typically create an output for the recipient and a change output you control. With an input of 120,000 sat, a payment of 70,000 and a fee of 1,000, the change is 49,000. The input total must equal the output total plus the fee.

An address is distinct from a UTXO. It can receive several outputs and does not necessarily represent one person. A transaction ID may already be public, but linking it to your identity or explaining who owns each output adds information the chain alone does not provide.

This structure matters for privacy. Combining inputs can suggest common control, and change can link future payments. Collaborative transactions exist, so that inference is not universally valid. Coin control means choosing the outputs to spend while understanding the effects of combining them.

Practice

  1. Draw three fictitious inputs of 40,000, 60,000 and 200,000 sat. Use only the first two to pay 70,000 with a fee of 1,000.
  2. Check that the change is 29,000 sat and that the third input is unused.
  3. Repeat using only the 200,000 sat input. The change would be 129,000. Compare potential costs and links without assuming equal transaction sizes.

Show what you know

Locate the input, recipient, change and fee in the course diagram. If you cannot identify an output, do not sign a real transaction.

Common question

Is everything that returns to my wallet change? No. It might be a transfer to a different address of your own. Classification requires knowing the policy and derivation. The amount alone is insufficient.

Pause point

Keep the fictitious diagram. Never keep a screenshot of your holdings for this exercise.

1. An input of 100,000 sat produces outputs of 30,000 and 69,200 sat. What is the fee?

  1. 69,200 sat.
  2. 800 sat.
  3. 30,000 sat.
Show answer800 sat.

100,000 minus 99,200 equals 800 sat.

Download PDF ↗

You can keep reading without an account. To share progress with TutorAI, activate a code.