Glossary · Mining

Block header

By the CloudMineCrypto teamUpdated

Definition

A block header is the 80-byte summary at the top of every Bitcoin block. It holds six fields, including the previous block’s hash, the Merkle root of the block’s transactions and the nonce, and it’s the only part of the block miners actually hash.

Part of the Bitcoin mining glossary, 88 terms in plain English.

What a miner actually hashes: 80 bytes

  • Version 4 B · rule set
  • Previous block hash 32 B · chains blocks together
  • Merkle root 32 B · fingerprint of every transaction
  • Time 4 B · timestamp
  • Target (bits) 4 B · how low the hash must be
  • Nonce 4 B · the number miners keep changing
Change the nonce (green) and the whole hash changes. That’s the guess miners make trillions of times a second.

What’s in the 80 bytes?

FieldSizeWhat it does
Version4 bytesWhich rules the block follows
Previous block hash32 bytesLinks this block to the one before
Merkle root32 bytesOne hash covering every transaction
Time4 bytesWhen the miner says it built the block
Bits (target)4 bytesHow low the block’s hash must be
Nonce4 bytesThe number miners keep changing

Why do miners hash only the header?

Because it stands in for the whole block. The Merkle root commits to every transaction, so changing any payment changes the header. The previous block hash commits to all history, so editing an old block breaks every header after it.

And 80 bytes is fast to hash. Miners run double SHA-256 over it, check the result against the target, change the nonce and go again, trillions of times a second.

How small is that, really?

The chain is about 969,006 blocks long (live), so every header since 2009 adds up to roughly 78 MB. That’s why light wallets can download all the headers, check the proof of work on each one, and still fit on a phone. The full blocks behind them run to hundreds of gigabytes.

Sources

  1. Block hashing algorithm · Bitcoin Wiki
  2. Block chain reference: headers, Merkle trees, target · Bitcoin developer documentation
  3. Bitcoin: A Peer-to-Peer Electronic Cash System · Satoshi Nakamoto, 2008

Live figures on this page come from the CloudMineCrypto API and public chain data, refreshed regularly, and are labelled where they appear. Educational only, not financial advice.

Now watch mining happen.

Claim a free 8-hour mining plan in the CloudMineCrypto app and watch your BTC balance grow from live network data. Withdraw to your own wallet, Lightning included. Rewards are estimates.