Nonce
Table of contents
A nonce is a random or sequential number used only once in blockchain transactions or cryptographic processes. It helps ensure security, uniqueness, and proper order of operations.
How Nonces Are Used
In proof-of-work blockchains like Bitcoin, miners repeatedly change the nonce in a block’s header to find a valid hash and solve the block. In Ethereum, a nonce is also used to track the number of transactions sent from an address, preventing double-spending or replay attacks.
Why Nonces Matter
Nonces add unpredictability and structure to blockchain systems. They make it harder for malicious actors to manipulate transactions and ensure that each action—like sending funds or mining a block—is distinct and verifiable.