---
title: "Account Nonce — definition | Nuri Glossary"
description: "A per-address counter that must increase with each transaction, making replays invalid and fixing the order of an account's transactions."
lang: "en"
type: "glossary-term"
canonical: "https://nuri.com/glossary/account-nonce"
---

# Account Nonce

A per-address counter that must increase with each transaction, making replays invalid and fixing the order of an account's transactions.

## Basically

An account nonce is a counter that goes up by one for every transaction sent from an address. It stops the same transaction from being used twice and keeps transactions in order.

## Key Takeaways

- Each address has its own counter that starts at zero and increments with every outgoing transaction.
- The network rejects any duplicate transaction with the same nonce, which stops replay attacks.
- If a transaction gets stuck, all later transactions from that address also get stuck until the gap is fixed.

## What Is an Account Nonce?

An account nonce is a sequential counter that tracks how many transactions have been sent from a specific address on an account-model blockchain. Every externally owned account (EOA) on Ethereum and other EVM-compatible chains maintains its own nonce, starting at zero. Each time the account sends a transaction, the nonce increments by one. The network uses this counter to enforce strict ordering and prevent the same transaction from being executed twice.
The term nonce stands for "number used once." In the context of account-based blockchains, it serves a different purpose than the mining nonce used in proof-of-work systems. While a mining nonce is a random value miners iterate over to find a valid block hash, an account nonce is a deterministic, monotonically increasing counter tied to a specific sender address.
This mechanism is fundamental to how account-model chains maintain state consistency. Without nonces, an attacker could take a valid signed transaction and broadcast it repeatedly, draining the sender's account. The nonce makes each transaction unique even if the sender, receiver, and amount are identical.

## How It Works

When a user creates a transaction on Ethereum, the transaction object includes a nonce field along with other parameters like the recipient address, value, and gas settings. The process follows a strict sequence:

## Nonce Validation Rules

The network enforces strict rules around nonce values. Understanding these rules is essential for anyone building on EVM chains:

## Querying the Nonce

Developers can query an account's nonce using the eth_getTransactionCount RPC call with different block parameters:
The difference between the latest and pending counts reveals how many unconfirmed transactions are currently in the mempool for that account.

## Contract Account Nonces

Contract accounts also have nonces, but they serve a different purpose. A contract's nonce increments each time the contract deploys another contract using the CREATE opcode. This nonce determines the address of the newly created contract. Regular message calls between contracts do not affect the nonce.

## The Nonce Gap Problem

One of the most common issues developers encounter is the nonce gap. If a transaction with nonce 5 is pending or dropped, every subsequent transaction (nonce 6, 7, 8, and so on) becomes stuck in the queued pool. Block builders skip these higher-nonce transactions because they cannot be applied until nonce 5 is processed first.
Nonce gaps arise from several scenarios:

## Unsticking Transactions

The standard technique for resolving a stuck transaction is to submit a replacement transaction with the same nonce but a higher gas price. This effectively overwrites the stuck transaction in the mempool:
To cancel a stuck transaction entirely, users can send a zero-value transaction to their own address at the stuck nonce. This consumes the nonce without transferring any value (beyond the gas cost), unblocking all subsequent transactions.

## Contrast with the UTXO Model

Bitcoin and other UTXO-model blockchains do not use account nonces. Instead of maintaining a running balance with a counter, Bitcoin tracks discrete unspent transaction outputs. Each output can only be spent once, and spending it consumes the output entirely. This design provides inherent replay protection: once an output is spent, it cannot be spent again, making nonces unnecessary.
The two models have distinct tradeoffs. For a detailed comparison, see the research article on UTXO model vs. account model.
Bitcoin's UTXO model naturally supports parallel transaction creation from the same wallet because each transaction references independent outputs. In contrast, Ethereum's sequential nonces force transactions from a single account into a strict queue, which complicates high-throughput use cases. Layer-2 solutions like Spark inherit Bitcoin's UTXO-based flexibility while adding instant settlement.

## Replay Attack Prevention

The primary purpose of the account nonce is preventing replay attacks. Without nonces, an attacker who observes a valid signed transaction on the network could rebroadcast it indefinitely. Because the signature covers the nonce value and the network rejects duplicate nonces, each signed transaction can only be executed once.

## Transaction Ordering

Nonces guarantee that transactions from a single account execute in a predictable sequence. This is critical for smart contract interactions where the order of operations matters: an approval transaction must confirm before the corresponding transfer, and a deposit must process before a withdrawal.

## High-Throughput Nonce Management

Applications that send many transactions rapidly (trading bots, payment processors, airdrop distributors) must implement sophisticated nonce management. Common strategies include:

## Account Abstraction

Account abstraction (ERC-4337) introduces flexible nonce schemes for smart contract wallets. Instead of a single sequential counter, smart wallets can implement two-dimensional nonces with a key and a sequence number, enabling parallel transaction channels from a single account. This addresses a major limitation of EOA nonces for applications that need concurrent transaction streams. See the account abstraction deep dive for details on how ERC-4337 handles nonce management.

## Sequential Bottleneck

Because nonces must be strictly sequential, a single stuck transaction blocks all subsequent transactions from that account. For applications processing hundreds of transactions per minute, a single nonce gap can cascade into significant delays across the entire pipeline.

## Mempool Eviction

During periods of high network congestion, nodes may evict low-fee transactions from their mempools. If the evicted transaction has a nonce that later transactions depend on, those transactions become permanently stuck until the gap is filled. Monitoring mempool state and implementing automatic fee bumping is essential for production systems.

## Cross-Chain Replay

Account nonces only prevent replay within a single chain. After a hard fork that creates two chains sharing the same account state, a transaction valid on one chain could be replayed on the other. This is why Ethereum uses a chain ID (introduced in EIP-155) alongside the nonce to bind transactions to a specific network.

## Nonce Reuse Vulnerabilities

While the protocol prevents nonce reuse at the consensus level, application-layer bugs can create vulnerabilities. If a wallet or backend system accidentally reuses a nonce locally before the first transaction confirms, it may inadvertently replace a legitimate transaction with an unintended one. Robust nonce tracking with proper concurrency controls is critical for any system managing multiple in-flight transactions.
This glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.
Part of the [Nuri glossary](https://nuri.com/glossary), which defines 1876 Bitcoin, Lightning, wallet, stablecoin and payment terms.
