What Is the Difference between a Nonce and an Extranonce?

The nonce is a 32-bit field in the standard block header that miners iterate on to find a valid hash. The extranonce is a variable-length field contained within the Coinbase transaction, which itself is part of the Merkle Root.

When the 32-bit nonce is exhausted, the miner changes the extranonce. This modification creates a new Merkle Root, which in turn creates a new block header and allows the 32-bit nonce search to begin anew.

What Are the Main Components of a Typical Block Header?
What Is a ‘Nonce’ in the Context of Block Mining and Share Validation?
How Does the Size of the Hash Output (E.g. SHA-256) Relate to the Nonce?
How Does a Change in the Merkle Root Affect the Block’s Nonce and the Subsequent Mining Process?
How Does a Change in a Block’s Nonce Affect Its Header Hash?
How Does the Size of the Nonce Field Affect the Mining Process?
How Is the Nonce Related to the Block Timestamp?
What Is the Difference between a “Block Header” and the Full “Block Data”?

Glossar