Nonce

Security

Per-account counter ensuring each transaction is unique and ordered.

The nonce is a counter that increases with each transaction from an account. It prevents replay and enforces order. If a transaction is stuck, you can replace it with the same nonce at a higher fee.

Frequently asked questions

  • What happens with a nonce gap?
    Later transactions wait until the missing nonce is mined or canceled. Replace or send the missing one.
  • Can I reuse a nonce?
    No. Each nonce can be used once per account. Reusing causes conflicts and reverts.
  • How do I fix a stuck nonce?
    Speed up or cancel the pending transaction using the same nonce with a higher fee.