Skip to main content

What Is a Nonce, and Why Is My Transaction Stuck Behind Another?

What Is a Nonce?​

On Ethereum and other EVM networks (Base, Arbitrum, BNB Chain, Polygon, and others), every transaction from your address has a nonce: a counter that starts at 0 and goes up by one with each transaction you send. Your first transaction has nonce 0, the next has nonce 1, and so on.

The nonce does two jobs:

  • It keeps your transactions in order. The network only accepts nonce 5 after nonce 4 has confirmed.
  • It stops a transaction from being used twice. Each nonce can only confirm once, so nobody can replay a payment you already sent.

You can see a transaction's nonce on its block explorer page. See What Is a Block Explorer and How Do I Use It?.

Why Is My Transaction Stuck Behind Another?​

Because transactions from one address confirm strictly in order, a pending transaction blocks every later one. If nonce 4 is waiting, for example because its fee is too low for current demand, nonce 5 waits too, even if it pays a higher fee.

This usually happens when:

How Gem Wallet Picks the Nonce​

You never need to set a nonce yourself. How Gem Wallet picks it depends on the network:

  • Ethereum: Gem Wallet checks your own sends that are still pending and uses the first nonce none of them holds. A second send while the first is pending gets the next nonce and waits in line behind it, so both go through, in order. If an earlier send was dropped, its nonce is reused, so later sends don't get stuck behind a gap. A pending send holds its nonce for five blocks and at least a minute. After that, your next send takes over that nonce and replaces the stuck one, so only the new one confirms. A token swap that needs an approval gets two nonces in a row, one for the approval and one for the swap.
  • Other EVM networks (Base, Arbitrum, BNB Chain, Polygon, and others): Gem Wallet uses the count of your confirmed transactions. A second send while one is still pending gets the same nonce, so the network either rejects it (for example "replacement transaction underpriced" or "nonce too low"), or replaces the pending one if the new fee is clearly higher. Only one of the two can confirm.
tip

Wait for a transaction to show Confirmed in Activity before sending the next one from the same address, especially on networks other than Ethereum. On Ethereum, a second send goes through after the first one, so check that you really want to send both.

What to Do​

  1. Find the blocking transaction. On the explorer, look at your address for the pending transaction with the lowest nonce.
  2. Wait for it to confirm or drop. Most pending transactions confirm once fees fall. If the network drops one, its nonce becomes free again, and later transactions can go through.
  3. Keep the network's fee coin in your wallet, such as ETH, so the pending transaction can still be included when fees allow.
  4. Don't keep resending the same payment. On Ethereum, each resend queues up and goes through, so you'd pay more than once. Check the explorer first.

Gem Wallet doesn't currently offer Speed Up or Cancel for a pending transaction. See Why Is My Crypto Transaction Pending?.

Do Other Networks Use a Nonce?​

Many account-based networks use a similar counter, often called a sequence number, for example XRP Ledger and Cosmos chains. Bitcoin and other UTXO networks don't. They track coins instead of an account counter. Some networks, like Solana, use a recent block reference instead, so transactions don't wait in line behind each other.