POST
/
bundlers
/
{chainId}
/
rpc
curl --request POST \
  --url https://api.gelato.digital/bundlers/{chainId}/rpc \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "eth_estimateUserOperationGas",
  "params": [
    {
      "sender": "<string>",
      "nonce": "<string>",
      "factory": "<string>",
      "factoryData": "<string>",
      "callData": "<string>",
      "signature": "<string>",
      "paymaster": "<string>",
      "paymasterData": "<string>",
      "paymasterPostOpGasLimit": "<string>",
      "paymasterVerificationGasLimit": "<string>"
    }
  ]
}'
{
  "id": 1,
  "jsonrpc": "2.0",
  "result": {
    "preVerificationGas": "0x0",
    "verificationGasLimit": "0x148a6",
    "callGasLimit": "0x358e"
  }
}

The API Playground below defaults to EntryPoint v0.7 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.

Path Parameters

chainId
number
required

Target network chain identifier.

Query Parameters

sponsorApiKey
string

1Balance API key which covers transaction costs.

Body

application/json

Response

200
application/json

Successful response

The response is of type object.