Skip to main content
POST
/
rpc
/
{chainId}
gelato_getUserOperationGasPrice
curl --request POST \
  --url https://api.gelato.cloud/rpc/{chainId} \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <x-api-key>' \
  --data '
{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "gelato_getUserOperationGasPrice"
}
'
{
  "id": 1,
  "jsonrpc": "2.0",
  "result": {
    "maxPriorityFeePerGas": "0x59682f00",
    "maxFeePerGas": "0x1fbbcb8304"
  }
}

Headers

X-API-Key
string
required

Gelato API key for higher rate limits. This must be provided if sponsoring off-chain via Gas Tank.

Path Parameters

chainId
number
required

Target network chain identifier.

Body

application/json
id
number
default:1
jsonrpc
string
default:2.0
method
string
default:gelato_getUserOperationGasPrice

Response

Successful response

id
number
default:1
jsonrpc
string
default:2.0
result
object

Estimated gas price components for a UserOperation.