Skip to content
CryptoAcademy logo CryptoAcademy
Menu
Lesson Beginner · 14 min

Blocks and chains

A block is a batch of transactions plus a header. The header is where all the cleverness lives — hashes, difficulty, nonce and timestamp.

In this lesson

  • List the fields of a typical block header
  • Explain what block height means
  • Read a block as JSON and identify each part

Anatomy of a block

Inside a block
A block contains a header with linking metadata and a list of transactions Block #840,123 ~10 minutes · Bitcoin BLOCK HEADER (80 BYTES) Previous block hash 0000000000000000…00d4b1f Merkle root a3f9c1…7c2e90 Timestamp 1758… (UTC) Difficulty target 0x1703… Nonce (the number miners change) 2,145,903,771 TRANSACTIONS (2,431) tx #1 Alice → Bob · 0.5 BTC tx #2 Carol → Dan · 1.2 BTC tx #3 Coinbase → Miner · 3.125 BTC Header hash = the block's fingerprint. Changing any field changes the hash and breaks the chain.
Transactions are hashed into a Merkle root; the header links back to the previous block.
Field Purpose
Previous hash Fingerprint of the parent block — the chain link.
Merkle root Single hash committing to every transaction in this block.
Timestamp When the block was found (approximate, agreed by consensus).
Difficulty / target How hard the block was to produce.
Nonce The counter miners grind to satisfy the target.
Height How many blocks precede it since genesis.
block.json json
{\n  "height": 800000,\n  "previous_hash": "00000000000000000002a7c4...9f3c1e",\n  "merkle_root": "3f2a1c...b7d9",\n  "timestamp": 1700000000,\n  "nonce": 289174923,\n  "tx_count": 2405\n}

Example · Block height as a ruler

Bitcoin's genesis block is height 0; today's tip is height 800k+. Height is how wallets say "you have N confirmations": your transaction in a block at height H has tip - H + 1 blocks stacked on top of it.

Two structural choices do most of the work:

  • Fixed-size batches — transactions arrive continuously, but the chain advances in discrete, comparable units.
  • Hash commitment — the Merkle root compresses thousands of transactions into 32 bytes, so light clients can verify a single transaction without downloading the block.

Open a block

Use the lab to create a block, inspect its fields, then modify a transaction and watch the root change.

Try it yourself
How big is a block?

Bitcoin caps around 1-4 MB (roughly 2,000-4,000 transactions); Ethereum targets ~15 MB worth of "gas" per slot with much shorter block times.

Can two blocks share a height?

Yes — a temporary fork. Consensus resolves it by keeping the branch with the most cumulative work.

Share this page

Send this link to a friend, or scan the QR code to open it on your phone.