Skip to main content
POST
/
rpc
relayer_getFeeData
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..."
  }
}

Headers

X-API-Key
string
required

Gelato API key for authentication.

Body

application/json
id
number
default:1
required
jsonrpc
string
default:2.0
required
method
string
default:relayer_getFeeData
required
params
object
required

Response

Successful response

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