Block Header
A block header is a small section at the beginning of every blockchain block that contains essential information about the block. In Bitcoin, the block header is used during the mining process and includes data such as the previous block hash, Merkle Root, timestamp, difficulty target, and nonce. Miners repeatedly hash the block header during Proof of Work mining to find a valid block hash.
Block Header Explained in Simple Terms
Block Header Explained in Simple Terms
A block header is like the identification card of a blockchain block.
Instead of storing all transaction details, the block header contains summarized information that miners use during mining. It connects the block to the previous block and helps secure the blockchain.
When miners perform mining calculations, they repeatedly hash the block header while changing the nonce value until they find a valid hash that meets the network difficulty requirement.
How Block Header Works
How Block Header Works
The block header is created before mining begins and is included in every block.
Here’s how the process works:
Previous Block Hash
The header stores the hash of the previous block, linking blocks together into a blockchain.Merkle Root
The Merkle Root summarizes all transactions included in the block.Timestamp
The current block creation time is added.Difficulty Target
The network difficulty determines how difficult it is to find a valid block hash.Nonce Field
Miners continuously change the nonce value while hashing the block header.Mining Process
Miners repeatedly hash the block header using Double SHA-256 until the resulting hash is lower than the target difficulty.
The Bitcoin mining condition is:
Example of Block Header in Practice
Example of a Block Header
A Bitcoin miner creates a candidate block containing:
transaction data
coinbase transaction
previous block hash
The miner then generates the block header and starts hashing it billions of times per second using ASIC miners.
Each time the nonce changes:
the block header hash changes
the miner gets a new chance to find a valid solution
Once a valid block hash is discovered, the block is broadcast to the network for verification.
Main Parts of a Bitcoin Block Header
A Bitcoin block header contains:
block version
previous block hash
Merkle Root
timestamp
difficulty target (bits)
nonce
The total size of a Bitcoin block header is 80 bytes.