eth_estimateUserOperationGas
Bundler API Endpoints
eth_estimateUserOperationGas
Returns estimated gas values for a UserOperation.
POST
eth_estimateUserOperationGas
Update: State overrides are now supported in this API endpoint. Checkout this example and Guide to understand how to use it.
- In the Playground, click
Add an Itemto include theStateOverrideSetobject. - Then, click
Add a Propertyand add sender address there. - Now you can add the override values such as
balance,nonce,code,state,stateDiffetc.
The API Playground below defaults to
EntryPoint v0.7 & EntryPoint v0.8 parameters, If you’re working with EntryPoint v0.6, please change the object parameter to UserOperationEntryPoint0.6.Important: After entering the userOperation parameters, make sure to click Add an Item to include the EntryPoint address.Headers
Gelato API key for higher rate limits. This must be provided if sponsoring off-chain via Gas Tank.
Path Parameters
Target network chain identifier.
Body
application/json
params
(`UserOperationEntryPoint0.7` · object | `UserOperationEntryPoint0.6` · object | string | `StateOverrideSet` · object)[]
- Object - The
UserOperationobject (gas limits and prices are optional) - String - The
EntryPointaddress the request should be sent through. This MUST be one of the entry points returned by theeth_supportedEntryPointsrpc call. - Object - Optional state override set that allows changes to the state of a contract before executing the call.
Required array length:
2 - 3 elements