Back to Glossary
IntermediateTechnology

Nonce

Definition

A 'number used once' that serves two key purposes in blockchain: (1) In Proof of Work mining, the nonce is the variable miners change to produce a block hash below the target difficulty. (2) In transactions, the nonce is a sequential counter for each wallet address that prevents replay attacks and ensures transaction ordering.

Example

If your Ethereum wallet has sent 50 transactions, the next one will have nonce 50 (0-indexed). If a transaction with nonce 48 is stuck, nonce 49 and above cannot be processed until it resolves.

Related Terms