cryptocurrency widget, price, heatmap
arrow
Burger icon
cryptocurrency widget, price, heatmap

Nonce

A nonce is a one-time value that makes transactions or messages unique and prevents replay.

How Nonce Works

On Ethereum, every account (both an EOA and a contract account) has a nonce stored in its on-chain state. For EOAs, the account nonce increments each time a transaction from that address is accepted into the chain, which enforces a strict order for that account’s transactions.

When you send a transaction, you include a transaction nonce. Nodes check that the transaction’s nonce matches the sender account’s expected nonce; if it doesn’t, the transaction is rejected. This is why wallets and RPC endpoints can return errors like “nonce too low” (you already used it) or “nonce too high” (you skipped one).

Nonces also show up at the application layer. Many smart contracts and off-chain signing schemes include a per-user or per-order nonce (or counter) inside the signed data, then verify it on-chain to prevent the same signed message from being executed twice. These app-level nonces are separate from the protocol-level Ethereum account nonce and only work if the contract actually checks and updates them.

The term is overloaded across crypto. In Bitcoin-style proof-of-work, a “mining nonce” is a field miners vary to find a valid block hash. In general cryptography, a nonce can be a random one-time value used in signatures or encryption.

Example

If a deli ticket number keeps your orders in line, then an Ethereum account nonce is the ticket number that makes each transaction unique and correctly ordered.

Why It Matters

Nonce-based replay protection stops old transactions or signed messages from being copied and executed again. It also explains common wallet behavior: if a low-nonce transaction is stuck pending, higher-nonce transactions from the same account may stay pending until the gap is resolved.

Risks or Limitations

Nonce gaps can cause “stuck” transaction queues: sending a higher-nonce transaction doesn’t bypass a missing earlier nonce. Application-layer nonces can be misused if a contract forgets to validate or increment them, and standards like ERC-5008 (per-NFT nonces that change on transfer) require ecosystem support to be effective.

Related Terms

  • Replay Protection
  • Externally Owned Account (EOA)
  • Smart Contract
  • ERC-721
  • Account Abstraction
cryptocurrency widget, price, heatmap
v 5.12.1
© 2017 - 2026 COIN360.com. All Rights Reserved.