Skip to content

Quote

Endpoint: GET /quote

Description: Retrieves a quote for transferring assets between specified source and destination chains.

Parameters:
NameTypeRequiredDescription
srcChainIdnumbertrueSource chain ID
destChainIdnumbertrueDestination chain ID
amountstringtrueAmount to be transferred (in wei)
Example Request:
curl -X GET https://api.refuel.exchange/quote?srcChainId=1&destChainId=56&amount=1000000000000000
Example Response:
{
  "amountOut": "4533160666743836",
  "feesInUsd": 0.069112,
  "srcToken": {
    "name": "Ether",
    "symbol": "ETH",
    "decimals": 18,
    "address": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
    "chainId": 1,
    "logoURI": "https://refuel.sfo3.cdn.digitaloceanspaces.com/tokens/ETH.png",
    "chainLogoURI": "https://refuel.sfo3.cdn.digitaloceanspaces.com/chains/Ethereum.png"
  },
  "destToken": {
    "name": "BNB",
    "symbol": "BNB",
    "decimals": 18,
    "address": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
    "chainId": 56,
    "logoURI": "https://refuel.sfo3.cdn.digitaloceanspaces.com/tokens/BNB.png",
    "chainLogoURI": "https://refuel.sfo3.cdn.digitaloceanspaces.com/chains/BSC.png"
  },
  "amountInUsd": 3.20207,
  "amountOutUsd": 3.132958,
  "route": "refuel"
}