The practical guide to web3 domains for creators: what owning your name actually buys, what ENSv2 pricing looks like in 2026, and where the honest limits are.
A nonce ("number used once") serves two distinct purposes in blockchain: as a sequential transaction counter for each account, and as a variable value in Proof of Work mining. Both uses ensure order, uniqueness, and security in the network.
Account Nonce (Transaction Ordering)
Every Ethereum account has a nonce — a counter starting at zero that increments with each outgoing transaction. The nonce ensures transactions are processed in the correct order and prevents the same transaction from being executed twice.
How Account Nonces Work
| Transaction | Nonce | Purpose |
|---|
| First transfer | 0 | Initialize the counter |
| Second transfer | 1 | Sequential ordering |
| Third transfer | 2 | Sequential ordering |
| Replacement tx | Same as original | Replace pending transaction |
Preventing Replay Attacks
Without nonces, an attacker could capture a signed transaction and rebroadcast it. The nonce ensures each transaction is unique — the network rejects any transaction with a nonce that has already been used.
Mining Nonce (Proof of Work)
In Bitcoin mining, the nonce is a 32-bit field that miners repeatedly change to find a block hash below the target difficulty. This trial-and-error process is what makes mining computationally intensive.
Mining Process
- Assemble block data (transactions, previous hash, timestamp)
- Set nonce to 0
- Hash the block header
- If hash is below target — block is valid
- If not — increment nonce and try again
Nonce in Smart Contracts
Solidity provides a nonce() function for CREATE2 addresses, allowing deterministic contract deployment. This enables patterns like counterfactual deployments where a contract address can be computed before deployment.
Common Nonce Issues
- Nonce gap: If nonce 3 is sent before nonce 2, it stays pending until nonce 2 is mined
- Stuck transactions: Replace a pending transaction by sending a new one with the same nonce and higher gas
- Nonce too low: Sending a transaction with a nonce that has already been used
- Multiple pending: Having several unmined transactions with sequential nonces
Why It Matters for Creators
Understanding nonces helps creators troubleshoot failed or stuck transactions — a common frustration when minting NFTs or interacting with smart contracts during high-traffic events. If your transaction is stuck, knowing you can replace it with the same nonce and higher gas can save time and money. Nonce management is especially important for creators batching multiple operations or running automated on-chain workflows.