level
Mid Level Reading
19 Jun, 2024

Block Header

[ Blok he-durr ]

A block header is the part of the block that holds the elements required to create the next block in a blockchain and verify existing blocks.

Michael Healy
Written by
Michael Healy
Michael Healy Michael Healy Expert Author
Michael, an entrepreneur, and co-founder of Unit, is a full-stack, mobile, and blockchain developer with extensive experience in the crypto and blockchain industry since 2010. A leading token builder, Unit powers the token economy using the Polkadot-powered Unit Network blockchain. Michael has built a diverse portfolio with multiple successful exits, including encrypted P2P video conferencing,...
pawel Laskarzewski
Fact checked by
Paweł Łaskarzewski
pawel Laskarzewski Paweł Łaskarzewski Expert
Paweł Łaskarzewski is an accomplished engineering professional turned serial entrepreneur with an extensive two-decade career traversing sectors like aerospace, fintech, AI, and biotech. Beginning his career in engineering, Paweł developed key problem-solving and technical skills that laid the groundwork for his later entrepreneurial achievements. He has notably contributed to the banking sector by co-founding two...

What Is a Block Header?

A block header is the part of a blockchain block containing data about the block.

This data includes a timestamp, difficulty target, Merkle root (to verify transactions), the previous block hash, and a nonce which is used for randomized hashing in the block mining process.

How Block Headers Function: An Overview

When mining blocks, miners collect the chosen transactions and create a block header that includes several elements critical to the mining process:

  • Previous block hash: New blocks are formed from old ones. More specifically, the hash from the previous block is used in the mining process in combination with the nonce (more on that below) to find the next hash.
  • Merkle root: Miners need a way to verify that the transactions they put inside a block are valid. Transactions packaged into a block can be verified using the Merkle root of their hashes
  • Timestamp: The block header includes the exact time it was created based on the miner’s system time. This value is later verified by other network participants. 
  • Difficulty target: A difficulty target controls the rate of block production in the face of rapidly improving computational capability and network participation. The network dynamically adjusts this target through consensus.
  • Nonce: This element is a value chosen at random on every block creation attempt. It randomizes the input during the hashing process and, in doing so, changes the output hash. Once a hash matching the network’s current requirements is found, the nonce is baked into the final block header appended to the blockchain.  

Conclusion

The block header is an essential element of every block in every blockchain. It holds the metadata necessary to continue the chain and review the validity of previous transactions.

Michael Healy
Written by

Michael, an entrepreneur, and co-founder of Unit, is a full-stack, mobile, and blockchain developer with extensive experience in the crypto and blockchain industry since 2010. A leading token builder, Unit powers the token economy using the Polkadot-powered Unit Network blockchain.

Michael has built a diverse portfolio with multiple successful exits, including encrypted P2P video conferencing, a large UK student social network, and the Wikileaks Android app. He has experience working with top organizations like Wellington Partners, Founders Forum, Google, KPMG, and Saatchi & Saatchi.

More crypto lingo