Quote
Endpoint: GET /quote
Description: Retrieves a quote for transferring assets between specified source and destination chains.
Parameters:Name | Type | Required | Description |
---|---|---|---|
srcChainId | number | true | Source chain ID |
destChainId | number | true | Destination chain ID |
amount | string | true | Amount to be transferred (in wei) |
curl -X GET https://api.refuel.exchange/quote?srcChainId=1&destChainId=56&amount=1000000000000000
{
"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"
}