Labs ICT
⭐ Pro Login

How Blockchain Works

The lifecycle of a block from creation to finality

How Blockchain Works

Every blockchain operates as a cycle: transactions are created, grouped into blocks, validated through consensus, and appended to a chain. Understanding this lifecycle reveals why blockchains are so resilient.

The Lifecycle of a Block


  Step 1: TRANSACTION CREATION
  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  β”‚  User A sends 2 ETH to User B        β”‚
  β”‚  Transaction includes:               β”‚
  β”‚  - Sender address                    β”‚
  β”‚  - Recipient address                 β”‚
  β”‚  - Amount                            β”‚
  β”‚  - Digital signature (proof of auth) β”‚
  β”‚  - Gas fee                           β”‚
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
           β”‚
           β–Ό
  Step 2: POOL OF PENDING TRANSACTIONS
  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  β”‚  β”Œβ”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”   β”‚
  β”‚  β”‚ T1  β”‚ β”‚ T2  β”‚ β”‚ T3  β”‚ β”‚ T4  β”‚   β”‚
  β”‚  β””β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”˜   β”‚
  β”‚  Transactions wait to be picked up  β”‚
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
           β”‚
           β–Ό
  Step 3: BLOCK CREATION
  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  β”‚  Block #12,345                       β”‚
  β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚
  β”‚  β”‚ Previous Hash: 0x8a3f...       β”‚  β”‚
  β”‚  β”‚ Timestamp: 2026-07-04 12:00    β”‚  β”‚
  β”‚  β”‚ Merkle Root: 0xb7c1...         β”‚  β”‚
  β”‚  β”‚ Nonce: 0                        β”‚  β”‚
  β”‚  β”‚ Transactions: [T1, T2, T3]     β”‚  β”‚
  β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
           β”‚
           β–Ό
  Step 4: CONSENSUS VALIDATION
  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  β”‚  Nodes verify:                       β”‚
  β”‚  - Valid signatures                  β”‚
  β”‚  - Sufficient balance                β”‚
  β”‚  - Correct block format              β”‚
  β”‚  - Valid proof (PoW or PoS)          β”‚
  β”‚  If consensus reached β†’ block added  β”‚
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
           β”‚
           β–Ό
  Step 5: BLOCK APPENDED TO CHAIN
  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  β”‚  Block #12,344 ──► Block #12,345    β”‚
  β”‚  Hash: 0x8a3f    Hash: 0x5d2e       β”‚
  β”‚                    (contains prev)   β”‚
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

How Blocks Link Together

Each block contains the hash of the previous block. Changing any data in an old block changes its hash, which breaks the link to the next block, which breaks the next, and so on. This chain of hashes is what makes the ledger tamper-evident.


  Block N-2            Block N-1            Block N
  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”        β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”        β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  β”‚Data      β”‚        β”‚Data      β”‚        β”‚Data      β”‚
  β”‚Prev Hash β”‚        β”‚Prev Hash β”‚        β”‚Prev Hash β”‚
  β”‚  0x7e2a  β”‚        β”‚  0x9c4f  β”‚        β”‚  0x5d2e  β”‚
  β”‚Hash      β”‚        β”‚Hash      β”‚        β”‚Hash      β”‚
  β”‚  0x9c4f  │◄───────│  0x5d2e  │◄───────│  0x1b8a  β”‚
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜        β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜        β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
  Each block's hash is stored in the next block

Transaction Confirmation

A transaction is considered more secure as more blocks are added after it. In Bitcoin, 6 confirmations (6 blocks mined on top) is considered secure. In Ethereum, finality is achieved differently through its Proof of Stake mechanism.

πŸ§ͺ Quick Quiz

What is a block in a blockchain?