Entrypoint Errors
AA25: Nonce Mismatch
Addressing invalid nonce issues in user operations
The nonce
provided in your user operation is invalid.
Resolution Strategies
-
Nonce Verification:
- Ensure you’re using the correct current nonce for the smart account and selected
key
- Consider using
getAccountNonce
- Ensure you’re using the correct current nonce for the smart account and selected
-
Common Pitfalls:
- Avoid reusing previously used nonces
- Don’t use nonces too far in the future (no more than 10 ahead of current nonce)
-
Formatting Check:
- Verify correct nonce format
-
Parallel Transaction Handling:
- For concurrent operations, utilize custom nonce
key
- Refer to Parallel Transaction Guide
- For concurrent operations, utilize custom nonce
Nonce Structure: The EntryPoint uses a 256-bit nonce, split into:
- 192-bit
key
- 64-bit
sequence
Eachkey
has its own sequentialsequence
, allowing newkey
introduction with arbitrary values.