cURL
curl --request POST \ --url https://api.gelato.cloud/rpc \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <x-api-key>' \ --data ' { "id": 1, "jsonrpc": "2.0", "method": "relayer_getFeeData", "params": { "chainId": "1", "token": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48" } } '
{ "id": 1, "jsonrpc": "2.0", "result": { "chainId": "1", "token": { "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "decimals": 6 }, "rate": 2000.5, "minFee": "4.5", "expiry": 1755917874, "gasPrice": "0x4a817c800", "context": "0x..." } }
Fetches the exchange rate for a payment token along with current gas prices. Returns a quote with an expiry timestamp.
Gelato API key for authentication.
Show child attributes
Successful response