Contract address
Encodes function data for handleOps
Encodes the function data for handling user operations.
The user operation to encode
Gas limit for the main execution call
Maximum total fee per gas unit
Maximum priority fee per gas unit
Account nonce
Gas overhead for pre-verification operations
Gas limit for the verification phase
The address that will receive the gas refund
The encoded function data as a hex string
Estimates call gas limit
Estimates the call gas limit for a user operation using binary search.
The estimation parameters
Parameters for gas estimation methods
Optional
entryPointAddress?: `0x${string}`Optional custom entry point address
Optional
stateOverrides?: StateOverrideSetOptional state overrides for the simulation
The user operation to estimate gas for
Gas limit for the main execution call
Maximum total fee per gas unit
Maximum priority fee per gas unit
Account nonce
Gas overhead for pre-verification operations
Gas limit for the verification phase
The estimated call gas limit as a bigint
Estimates verification gas limit
Estimates the verification gas limit for a user operation using binary search. Also returns the valid time window for the operation.
The estimation parameters
Parameters for gas estimation methods
Optional
entryPointAddress?: `0x${string}`Optional custom entry point address
Optional
stateOverrides?: StateOverrideSetOptional state overrides for the simulation
The user operation to estimate gas for
Gas limit for the main execution call
Maximum total fee per gas unit
Maximum priority fee per gas unit
Account nonce
Gas overhead for pre-verification operations
Gas limit for the verification phase
Object containing verification gas limit and validity window
Gets the nonce for an account
Retrieves the nonce for a smart account at the specified key.
The address of the smart account
Optional key for the nonce, defaults to 0n
The current nonce value as a bigint
Simulates handling a user operation
Simulates the execution of a user operation. This method always reverts by design, and the execution result is parsed from the revert data.
The simulation parameters
Parameters for the simulateHandleOp method
Optional
stateOverrides?: StateOverrideSetOptional state overrides to modify blockchain state during simulation
The target contract address for the simulation
The calldata to be executed on the target contract
The user operation to simulate
Gas limit for the main execution call
Maximum total fee per gas unit
Maximum priority fee per gas unit
Account nonce
Gas overhead for pre-verification operations
Gas limit for the verification phase
The execution result containing validation and execution details
ParseError if the error data cannot be parsed
SimulateHandleOpError if the simulation fails with an error
Interface for EntryPoint v0.6.0 simulation methods. Extends IEntryPointV6 with additional gas estimation methods.