How is a Block hash created?

A Bitcoin hash is created by running the SHA-256 algorithm on six pieces of data.

1. The Bitcoin version number.
2. The previous block hash.
3. The Merkle Root of all the transactions selected to be in that block.
4. The timestamp.
5. The difficulty target.
6. The Nonce.

1. The Bitcoin version number is simply a number to track software and protocol upgrades.

2. The previous block hash is the hash of the parent block in the blockchain. i.e. block 23’s hash if this is block 24.

3. The Merkle Root or essentially a binary hashing of all the transactions in the block.

4. The timestamp is the time that hashing took place.

5. The difficulty target is the Bitcoin Network targeted number of zeroes.

6. The Nonce is a 32Bit number that the miners vary from 0 to try and find the hash solution.

As the Bitcoin mining network has advanced from Mega hashes to Giga Hashes to Peta hashes – the nonce, or the number that the miner varies can be run through in less than a second, which has 4 billion attempts has become easily exceeded resulting in miners having to use an extra nonce factor.

They got around this by adding data into the coinbase transaction (generation transaction) – which then means, after recalculating, the normal nonce numbers can be run through again, and if run through in a second before the timestamp changes, the Merkle root is recalculated and run through again.

Related guides

What is Bitcoin? What is a Bitcoin Fork? What are the advantages of Bitcoin? Who is Satoshi Nakomoto? How does a Bitcoin transaction work? What is a premine? How does a hashing algorithm work?

Popular guides

eToro Debuts CopyTrader in the U.S. to Drive Mass-Market Participation in Cryptocurrency Trading Sponsored Lykke: A 'World-Class' Cryptocurrency Exchange Sponsored Get Instant Crypto Loans in 3 Easy Steps What is a Bitcoin ETF? A Basic Overview of the Best Privacy Coins What Is the Binance Coin (BNB)? How to buy on Amazon with Bitcoin