Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

IEntryPointNonces

Handle nonce management for accounts. Nonces are used in accounts as a replay protection mechanism and to ensure the order of user operations. To avoid limiting the number of operations an account can perform, the interface allows using parallel nonces by using a key parameter. See https://eips.ethereum.org/EIPS/eip-4337#semi-abstracted-nonce-support[ERC-4337 semi-abstracted nonce support].

Functions

getNonce

Returns the nonce for a sender account and a key. Nonces for a certain key are always increasing.

function getNonce(address sender, uint192 key) external view returns (uint256 nonce);