Skip to main content
Aeterna Sol

Crypto markets, protocols and policy

What does an Ethereum transaction nonce count?

What is a nonce in an Ethereum transaction? It is the account’s transaction count, which orders transactions and helps you understand pending, replaced and failed transfers.

The Aeterna Sol Editors

What does an Ethereum transaction nonce count?

A nonce is the next transaction number for one Ethereum account: the first is 0, then 1, then 2. Each new transaction from that account must use the next number, so the nonce orders your transactions and stops the same signed transaction from being executed twice.

Think of it like a numbered queue for one account. If transaction 4 is still pending, transaction 5 cannot take its place in the sequence. Your wallet may show the nonce in its advanced transaction details; on Etherscan, you can find it on the transaction page.

A bridge deposit can use two consecutive nonces

Say you are making your first Monad bridge deposit with an ERC-20 token. An ERC-20 is a token type on Ethereum. Before the bridge contract can move the token, you may need to approve that contract to use it. The approval is one transaction, and the bridge call is another.

If your account’s next Ethereum nonce is n, the approval uses n and the bridge call uses n+1. The nonce counts transactions from your account, not the number of assets or the amount you transfer. The Monad bridge is a cross-chain app for transferring supported assets between Monad and Ethereum; here, the nonce helps you follow the Ethereum transactions involved.

That sequence matters if the approval is pending. The later bridge call has the next nonce, but the earlier transaction is still ahead of it in your account’s order. A wallet showing a pending transaction may therefore also show a later transaction waiting behind it.

The counter belongs to your account on a particular chain. Your address has one nonce on Ethereum and a separate nonce on Monad. Sending a transaction on Monad does not advance your Ethereum counter, even when the transaction relates to the same transfer. You can see different nonce values for the same address on the two chains.

EIP-155 connects a signed Ethereum transaction to a chain ID. The chain ID identifies the chain for which the transaction is signed. Including it in the signature prevents that transaction from being replayed on another chain, such as Monad. That protection is separate from the nonce: the nonce orders transactions within an account on a chain, while the chain ID binds the signature to its chain.

Pending, replaced and reverted transactions use the same counter

A pending transaction has been sent but has not yet been confirmed. If you need to speed it up, you can submit a replacement using the same nonce and a higher fee. The replacement competes for that position in your account’s sequence; it does not add a new nonce. If it is accepted and confirmed, the original transaction with that nonce cannot also execute.

You can also use a same-nonce replacement to cancel a pending transaction. In practice, a wallet may offer a cancel option that sends a replacement with a higher fee. Whether the replacement is accepted depends on the transaction and network conditions. If it confirms first, it takes the nonce’s place in the sequence, leaving the original pending transaction unable to execute with that nonce.

A transaction that reverts still consumes its nonce and its gas. Reverting means the transaction ran but its requested action failed. For a bridge deposit, a reverted transaction does not complete the intended action, but you cannot reuse its nonce for the next transaction. Your next transaction from that account uses the following number.

This is why a failed transaction can affect a later bridge call. If the approval or another earlier transaction reverts, the nonce is still used. The next transaction must follow the account’s current counter; it cannot go back and reuse the number from the reverted transaction.

Related questions

How do I cancel a pending Ethereum transaction?

To cancel a pending Ethereum transaction, submit a replacement using the same nonce and a higher fee. A wallet may provide a cancel option for this. If the replacement confirms first, it uses that nonce, and the original transaction cannot also execute. The pending transaction’s nonce is the number to match; sending a new transaction with the next nonce would not replace it.

What does a 'nonce too low' error mean?

A “nonce too low” error means the transaction uses a nonce below the account’s current counter on that chain. Another transaction may already have used that number, including one that reverted. Check the account’s recent transactions on the same chain, then use the next available nonce. Remember that Ethereum and Monad keep separate counters for your address.