Introduction
Hi, I'm cardene, a software engineer and technical writer focused on blockchain and AI.
I've also authored Japanese technical books on specification-driven development with LLMs and decentralized application (DApp) development.
I also build and publish a variety of tools, libraries, and open-source projects.
EIP-2681 limits account nonces to the range from zero to 2^64-1, establishing an explicit bound that simplifies their representation and processing.
This article translates, summarizes, and expands on the following specification.
More EIP explainers:
Overview
The proposal restricts an account's nonce to the unsigned 64-bit integer range.
An Ethereum transaction nonce is a sequential number associated with its sender. It helps enforce transaction ordering and prevents an already included transaction from being executed again with the same sender nonce on the same canonical chain.
The maximum unsigned 64-bit integer is 2^64-1, or 18,446,744,073,709,551,615 (approximately 1.84 × 10^19). This is an enormous range compared with practical transaction volumes.
An externally owned account normally starts with nonce zero. When a valid transaction from that account is included, the account nonce increases by one, even if top-level execution fails.
The account nonce can reach 2^64-1, but a transaction whose nonce is already equal to that value is invalid because accepting it would require another increment.
Nonces
Ethereum uses account nonces to order transactions from a particular sender.
Ethereum transactions and nonces
When users send ETH or invoke smart contracts, their transactions include a nonce that must satisfy the protocol's transaction-validity rules.
The role of the nonce
A newly created externally owned account normally has a nonce of zero. The account nonce advances as transactions from that account are processed.
Contract accounts also have nonces, which are used in contract creation. Their nonce semantics should not be confused with a count of ordinary user-submitted transactions.
Example
- Creating an account
- Alice creates an Ethereum account with nonce zero.
- Submitting the first transaction
- Alice submits a transaction sending 1 ETH to Bob.
- She uses transaction nonce zero.
- Including the transaction
- When the transaction is included in the canonical chain, Alice's account nonce increases to one.
- Submitting the next transaction
- Alice uses nonce one for her next transaction.
Why does this matter?
Nonces establish an ordering for transactions from the same sender. Transactions are additionally subject to balance, gas, signature, and other validity checks.
A previously included transaction cannot simply be replayed on the same canonical chain once the sender's nonce has advanced past its nonce.
Different pending transactions can nevertheless share the same sender and nonce, for example when replacing a pending transaction. A nonce alone is not a globally unique transaction identifier.
Cross-chain replay protection also requires appropriate transaction-domain separation, such as the chain identifier introduced by EIP-155.
Motivation
Historically, the Ethereum account nonce was described as an arbitrarily sized nonnegative integer in the protocol's abstract account representation.
Allowing values without a practical fixed bound is inconvenient for client implementations and state representations. Establishing a fixed-width upper bound can simplify data structures used for state witnesses and related verification mechanisms.
A state witness provides information needed to verify or execute state-dependent operations without requiring the verifier to retain all of the underlying state. It is not necessarily a record of the entire transaction history.
The nonce bound may also simplify the design of future transaction encodings and related protocol improvements.
Using a 64-bit representation rather than a wider integer can make nonce storage and processing more straightforward in Ethereum clients, although the actual performance benefit depends on their implementation.
Specification
The proposal introduces two constraints and describes them as applying retroactively from genesis.
Invalid transactions
A transaction with a nonce greater than or equal to 2^64-1 is invalid.
Once an account nonce reaches that maximum value, it can no longer originate a valid transaction requiring the nonce to be incremented.
The largest valid transaction nonce is therefore 2^64-2, whereas the largest permissible account nonce is 2^64-1.
Restrictions on CREATE and CREATE2
If the creating account's nonce is already equal to 2^64-1, CREATE and CREATE2 fail and push zero onto the stack.
These instructions create new contracts. The nonce constraint prevents contract creation from incrementing an account nonce beyond the permitted range.
In this case, gas intended for executing the initcode is not deducted. This does not mean the entire enclosing transaction or contract-creation instruction is free: applicable opcode, memory, and other costs must still be accounted for.
The constraints establish a consistent account nonce representation without allowing integer overflow. The practical likelihood of reaching the maximum is negligible.
Rationale
Difficulty of reaching the limit
Reaching the maximum through ordinary external transactions is practically infeasible.
At the minimum intrinsic transaction cost of 21,000 gas, executing 2^64-1 such transactions would require:
21000 × (2^64-1)
This is approximately 3.87 × 10^23 gas, before considering additional execution costs. Gas is a resource-accounting unit, not an ETH amount; the corresponding monetary cost depends on gas prices.
Historical context
The historical Morden testnet initialized account nonces to 2^20 to help distinguish its transactions from those on mainnet.
EIP-155 subsequently introduced chain identifiers into transaction signing, providing a more direct mechanism for cross-chain replay protection.
For EIP-155, see the following article.
EIP-155: Understanding replay protection on Ethereum networks
Client implementations
Many Ethereum clients, including go-ethereum, already represented nonces as unsigned 64-bit integers.
The proposal aligns the protocol-level constraints with this practical representation.
Why the maximum transaction nonce is invalid
Accepting a transaction with nonce 2^64-1 would require increasing the sender's account nonce beyond the permitted maximum.
Such a transaction is therefore invalid rather than being included and subsequently treated as an execution failure.
The limit makes an existing implementation constraint explicit at the protocol level while remaining far beyond ordinary account usage.
Compatibility
The change is theoretically backward incompatible because it excludes nonce values that were not explicitly excluded by the earlier abstract representation. In practice, it was not expected to affect existing accounts.
Reasons
Historical account state
The proposal reports that, as of November 2020, no Ethereum account exceeded the proposed limit.
Its historical example identifies account 0xea674fdde714fd979de3edf0f56aa9716b898ec8 as having the highest observed nonce at approximately 29 million, still far below 2^64-1.
This is a historical observation, not a claim about the account's current nonce.
Existing implementations
The original discussion notes that go-ethereum already used 64-bit representations for account and transaction nonces, including the historical fields state.Account.Nonce and types.txdata.AccountNonce.
These implementation details illustrate why the protocol-level bound was expected to have little practical compatibility impact.
Conclusion
Although the rule is theoretically restrictive, it formalizes a range that existing accounts were nowhere near exhausting and that major implementations already accommodated.
Citation
Alex Beregszaszi (@axic), "EIP-2681: Limit account nonce to 2^64-1," Ethereum Improvement Proposals, no. 2681, April 2020. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-2681.
Conclusion
EIP-2681 establishes an unsigned 64-bit account nonce limit and defines the behavior of transactions and contract creation near that limit. It clarifies protocol validity rules while simplifying nonce representation in clients.
Questions are welcome via Twitter @cardene777.
Other publications:


