The chain configuration this estimator is for
Map of EntryPoint contract instances by version
Estimates pre-verification gas for a user operation. This includes costs for calldata and fixed overheads.
The user operation to estimate for
Optional base fee per gas (required for some chains)
The estimated pre-verification gas as a bigint
Estimates all gas parameters for a user operation.
The estimation parameters
Parameters for estimating user operation gas.
Current base fee per gas
Optional
options?: Partial<EstimateUserOperationGasOptions>Additional estimation options
Optional
stateOverrides?: StateOverrideSetOptional state overrides for simulation
User operation without gas estimates
Gas estimation results including all required gas limits
Gas limits used during simulation
Interface for gas estimation implementations. Provides methods for estimating gas costs for user operations across different chains.
Example