estimateUserOperationGas
Estimate gas costs for an ERC-4337 user operation against a specified entry point, with optional network and state override settings.
Instructions
Estimate gas costs for an ERC-4337 user operation against an entry point
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"userOperation": "<userOperation>",
"entryPoint": "<entryPoint>"
},
"name": "estimateUserOperationGas"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | No | Network ID. Call listSupportedNetworks for all options. e.g. "eth-mainnet", "base-mainnet" | eth-mainnet |
| userOperation | Yes | UserOperation object | |
| entryPoint | Yes | EntryPoint address | |
| stateOverrideSet | No | State override set for gas estimation |