GET
/
oracles
/
{chainId}
/
conversionRate
curl --request GET \
  --url https://api.gelato.digital/oracles/{chainId}/conversionRate
{
  "chainId": "<string>",
  "from": "<string>",
  "to": "<string>",
  "conversionRate": 123,
  "details": {
    "numerator": "<string>",
    "denominator": "<string>"
  }
}

Path Parameters

chainId
number
required

Chain id where the conversion rate is estimated

Query Parameters

to
string
required

Payment token address on the provided chain

transactionChainId
number

Chain id where the transaction is to be executed. By default, it is the provided chain id

Response

200
application/json

Successful Conversion Rate Response

The response is of type object.