Skip to the workspace
Pebellslearn by building
Introduction to Blockchain  ›  Lesson

The Life of a Transaction

Basic Blockchain Operations 12 minA transaction is signed by its sender, broadcast to the network, checked by nodes, placed in a block by a producer, and becomes harder to reverse with every block added on top.

blockchain / The Life of a Transaction

Explore each scene at your own pace.

01 · The rule

The rule

The Life of a Transaction

Asha wants to pay Meera 4 coins for fixing her bicycle. She taps "send", and some seconds or minutes later Meera sees the payment arrive. In between, the transaction passes through the same five stages on almost every blockchain. Knowing the stages tells you where a payment can get stuck, and why "sent" is not the same as "settled".

The rule

Sign, broadcast, validate, include, confirm.

  1. Sign. Asha's wallet builds the transaction ("Asha pays Meera 4, fee 0.1") and signs it with her private key. The signature proves it came from her and that nobody has changed it (section 2).
  2. Broadcast. The wallet sends it to a few nodes, which pass it to their neighbours, which pass it on again. This gossip spreads it across the network within seconds.
  3. Validate. Each node checks it. Is the signature valid? Does Asha really have 4.1 coins available? Have those coins already been spent? A valid transaction waits in the node's mempool, its waiting room for pending transactions.
  4. Include. A block producer picks transactions from its mempool, usually preferring higher fees, and packs them into a new block. Other nodes re-check the whole block before accepting it.
  5. Confirm. The block joins the chain. Every later block stacked on top adds one more confirmation and makes the transaction harder to reverse.

Two everyday operations need no new block at all. Reading, such as looking up a balance or an old payment, is free and immediate: any node answers from its own copy. Syncing a new node means downloading the blocks and checking each one, starting from the genesis block.

Scene 1 of 5
Hover to wake the cannons. Drag to move, or use arrow keys when focused. Press Enter to fire a shot.