21Relay
Intermediate curriculum
Lesson 112 minReviewed July 2026

Bitcoin Transactions

Go beyond the basic send-and-receive view and examine how inputs, outputs, signatures, fees and network relay combine to move bitcoin.

Learning outcomes

By the end of this lesson, you should be able to

  • Inputs spend earlier UTXOs; outputs create new UTXOs.
  • Selected input value must be assigned to outputs or paid as a fee.
  • Nodes independently validate transactions before relaying them.
  • Broadcasting and confirming are separate stages.
1

A transaction spends earlier outputs

Bitcoin does not update a central account balance. A transaction identifies one or more existing unspent transaction outputs, called UTXOs, and consumes them as inputs.

It then creates new outputs with precise amounts and spending conditions. Those outputs remain available until a later valid transaction spends them.

2

Signatures authorise the spend

Each input must satisfy the locking conditions attached to the output it spends. For a typical wallet payment, this means supplying a valid digital signature created with the appropriate private key.

Nodes verify the structure, signatures, input availability and value rules. A signature proves authorisation without revealing the private key.

3

Broadcast is not confirmation

After signing, a wallet broadcasts the transaction to a node. Valid transactions may enter that node's mempool and relay across the peer-to-peer network.

The transaction remains unconfirmed until a miner includes it in a valid block. Later blocks add confirmations and increase confidence in the payment.

Transaction lifecycle

From wallet intent to confirmed transaction

Follow a transaction as it is constructed, authorised, relayed, validated and finally included in a block.

1

Build

The wallet chooses spendable UTXOs, creates outputs and normally adds a change output plus a fee.

Key vocabulary

Terms worth knowing

Input
A reference to an earlier unspent output that a new transaction attempts to spend.
Output
A new amount and spending condition created by a transaction.
Change
Value returned to a wallet-controlled output when selected inputs exceed the payment and fee.

Worked example

Paying 60,000 sats from one larger UTXO

A wallet selects a 100,000-sat UTXO. It creates a 60,000-sat payment output and a change output, while the difference also covers the miner fee.

  1. 1Select the 100,000-sat input
  2. 2Create the receiver output
  3. 3Calculate the transaction fee from size and fee rate
  4. 4Return the remaining value as change
  5. 5Sign each required input and broadcast

Bitcoin does not subtract numbers from an account balance. It consumes whole UTXOs and creates new outputs.

Common misconceptions

What learners often get wrong

Misconception

The leftover input value stays inside the old UTXO.

More accurate

An input is spent in full; any intended remainder must be created as a new change output.

Misconception

A transaction ID proves that every input is valid.

More accurate

Nodes independently validate referenced outputs, signatures and all applicable rules before accepting it.

Try it yourself

Sketch a transaction using 120,000 sats of inputs to pay 70,000 sats.

  • Choose one or more inputs
  • Add the payment output
  • Choose a hypothetical fee
  • Calculate the change output
  • Check that inputs equal outputs plus fee

Use fictional values and public information only. Never enter seed words, private keys or other wallet secrets into a learning exercise.

Key takeaways

  • Inputs spend earlier UTXOs; outputs create new UTXOs.
  • Selected input value must be assigned to outputs or paid as a fee.
  • Nodes independently validate transactions before relaying them.
  • Broadcasting and confirming are separate stages.

Lesson recap

Check what you learned

Reveal each model answer, then honestly mark whether you understood it or need another review.

1 of 3

Recall

Why does a normal transaction often include a change output?

References

Further reading

Lesson progress

Loading progress...

Rate this lesson

Was this lesson helpful?

No name or financial information is collected.

Found inaccurate or outdated information? Report a correction