0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

What does nonce too low mean on my transaction? Check the nonce

0
Posted at

A “nonce too low” error means the nonce you entered has already been used by a transaction from your address. Check which transaction used it, then drop the duplicate or resend with the next unused nonce.

Ethereum gives each account a sequential transaction count starting at 0, and each nonce can be used only once. The nonce identifies a transaction’s place in that account’s sequence; it is not a gas setting.

Say your account’s confirmed count is 8. Nonces 0 through 7 have been used, so a resend with nonce 7 fails: that transaction has already landed. The next unused nonce is 8.

A wallet can hold an old nonce after another transaction confirms. With Flashbots Protect, a private transaction may also confirm without appearing in the public pending transaction list. The flashbots review adds background on Flashbots and private transaction handling.

To see the current confirmed count, call eth_getTransactionCount for your address with the latest block tag. The returned number is the next unused nonce among confirmed transactions. Compare it with the nonce on the failed resend, then look up that nonce on a block explorer to see which transaction used it.

If you resent a Flashbots Protect transaction and got this error, the original private transaction has usually already landed. Check your address and transaction history on an explorer; a confirmed transaction with that nonce means the resend is a duplicate. If the explorer shows no confirmation, refresh the account count and wallet state before trying again.

Once you find the confirmed nonce, drop the duplicate resend. If you still need to send a transaction, use the next nonce in sequence, accounting for any earlier transactions you have already queued. The wallet should show the new transaction with that next nonce, so it can follow the confirmed ones without reusing a nonce.

“Nonce too low” is different from a gas fee problem: changing the fee alone does not make an already-used nonce available again. It is also different from “nonce too high,” which means the submitted nonce is ahead of the next one the account can use.

After confirming the account count and any earlier transactions, send only the transaction you still need. This avoids duplicating a transaction that has already succeeded and keeps your account’s transaction sequence in order.

Questions you may have next

How do I set a custom nonce in MetaMask?

Enable nonce customization in MetaMask’s advanced settings, then open the transaction’s advanced details and enter the nonce you want to use. Use the next nonce in sequence; MetaMask may not account for every pending transaction automatically.

What does nonce too high mean?

“Nonce too high” means the submitted nonce is later than the next one available for your account. Check the confirmed count and any pending earlier transactions, then send using the next nonce in sequence.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?