Glossary: Block Header

One-Sentence Definition

A block header is the compact metadata section at the top of each block that contains critical information like the previous block’s hash, timestamp, and nonce—this is what miners actually hash when searching for a valid proof-of-work solution.

Why It Matters for Solo Mining

When you’re solo mining, your hardware is constantly modifying and hashing the block header millions or billions of times per second, trying different nonce values until you find one that produces a hash below the target. The block header is only about 80 bytes, which means your mining hardware can process it incredibly fast—this small size is why mining can be so efficient. If you find a valid block header hash, you win the entire block reward plus transaction fees, which is the whole point of solo mining.

How It Works

A block header contains six main pieces of information: the version number, the previous block’s hash (linking blocks together into a chain), the merkle root (a cryptographic summary of all transactions), the timestamp, the difficulty target, and the nonce (a number miners can change). When you mine, you pick transactions from the mempool, create a coinbase transaction paying yourself, build the merkle root, and then start hashing different versions of the block header by incrementing the nonce.

Your mining software runs the block header through a hashing algorithm like SHA-256, KAWPOW, or RandomX depending on the cryptocurrency. If the resulting hash is below the target threshold, congratulations—you’ve found a valid block! Your full node then broadcasts the complete block (header plus all transactions) to the network for confirmation.

Example

Think of a block header like the summary page of a test. The full test might be 20 pages of questions and answers (like all the transactions in a block), but the summary page just has your name, the date, the test number, and your score—that’s the header. When mining, you’re essentially trying different “score” values (the nonce) on that summary page until you get one that meets the teacher’s requirements (the target difficulty). The famous genesis block of Bitcoin had a block header just like every other block, but with the previous block hash set to all zeros since there was no block before it.