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>",
      "initCode": "<string>",
      "callData": "<string>",
      "signature": "<string>",
      "paymasterAndData": "0x"
    }
  ]
}'
{
  "id": 1,
  "jsonrpc": "2.0",
  "result": {
    "preVerificationGas": "0x0",
    "verificationGasLimit": "0x148a6",
    "callGasLimit": "0x358e"
  }
}

UserOperation Fields : EntryPoint v0.7

Example Request

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "eth_sendUserOperation",
  "params": [
    {
      "sender": "0x85580969d39AeFB6CcFfea11E277C0B210FF33d1",
      "nonce": "0x1973f7116e20000000000000000",
      "factory": "0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",
      "factoryData": "0x....",
      "callData": "0x....",
      "maxFeePerGas": "0x0",
      "maxPriorityFeePerGas": "0x0",
      "preVerificationGas": "0x0",
      "signature": "0x....",
      "callGasLimit": "0x1d1d3",
      "verificationGasLimit": "0x57619"
  }, "0x0000000071727De22E5E9d8BAf0edAc6f37da032" // entryPoint v0.7 address
  ]
}

The API Playground below refers to EntryPoint v0.6 parameters, If you’re working with EntryPoint v0.7, please refer to the parameters listed above.

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.