erc4337_userop_gas_estimator
Estimate exact gas limits for ERC-4337 UserOperations, including paymaster overhead, to avoid transaction failures and optimize costs.
Instructions
Computes exact verificationGasLimit, callGasLimit, and preVerificationGas for ERC-4337 Account Abstraction UserOperations with paymaster gas safety overhead. (0.040 USDC on Base L2)
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": {
"payload": "<payload>"
},
"name": "erc4337_userop_gas_estimator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payload | Yes | Input parameters or JSON string payload for the tool execution | |
| paymentSignature | No | Base L2 USDC micropayment signature or transaction hash for x402 settlement |