Skip to main content

Nonce

mining · proof-of-work

A nonce is a value miners vary in a block header while searching for a hash that satisfies proof-of-work difficulty.

Also known as
number used once
1.basic

"Nonce" is short for "number used once," but a block-header nonce is simply a 32-bit search field and does not need to be globally unique. Miners vary it and other mutable candidate-block data, repeatedly hashing the header until an output is below the network's current target. That header contains valid proof of work if the rest of the block is also valid.

2.beyond-32bit

Because the 32-bit nonce space can be exhausted quickly, miners also vary other fields (like extraNonce in the coinbase transaction or block timestamp within allowed drift) to expand the search space.

3.security

The nonce is not secret or inherently unpredictable. The hash function and difficulty target make each distinct header attempt have a small probability of success, so producing valid blocks requires work on average. Network security also depends on hash-rate distribution, node validation, incentives, and participants' response to competing chains.

Related terms

All terms and definitions may update as the Cryptionary improves.