Get best quote across all bridges
Changed onRetrieves the best quote (lowest total fee) from all supported bridge protocols
Request
- Base URLhttps://api.chainrails.io/api/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Input token address
Output token address
Source blockchain
Destination blockchain
Amount in token units
Comma-separated bridges to exclude
Optional recipient address
Token symbol for amount denomination (defaults to USDC). Use this to specify amounts in other tokens like WETH, ETH, etc.
Response
Best quote retrieved successfully
Example response
{
"bridgeFeeDetails": {
"maxFee": "8000"
},
"totalFee": "18000",
"totalFeeFormatted": "0.018",
"route": {
"tokenIn": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"tokenOut": "0x06eFdBFf2a14a7c8E15944D1F4A48F9F95F663A4",
"sourceChain": "BASE_TESTNET",
"destinationChain": "ARBITRUM_TESTNET",
"amount": "10000000",
"bridge": "CCTP"
}
}Changes
- info
added the new enum value
AAVEto thequeryrequest parameteramountSymbol - info
added the new enum value
ARBto thequeryrequest parameteramountSymbol - info
added the new enum value
AUSDto thequeryrequest parameteramountSymbol - info
added the new enum value
AVAXto thequeryrequest parameteramountSymbol - info
added the new enum value
CURVEto thequeryrequest parameteramountSymbol - info
added the new enum value
EKUBOto thequeryrequest parameteramountSymbol - info
added the new enum value
LINKto thequeryrequest parameteramountSymbol - info
added the new enum value
LVMONto thequeryrequest parameteramountSymbol - info
added the new enum value
MONto thequeryrequest parameteramountSymbol - info
added the new enum value
OPto thequeryrequest parameteramountSymbol - info
added the new enum value
POLto thequeryrequest parameteramountSymbol - info
added the new enum value
SKYto thequeryrequest parameteramountSymbol - info
added the new enum value
SOLto thequeryrequest parameteramountSymbol - info
added the new enum value
SOLANA_MAINNETto thequeryrequest parameterdestinationChain - info
added the new enum value
SOLANA_MAINNETto thequeryrequest parametersourceChain - info
added the new enum value
SOLANA_TESTNETto thequeryrequest parameterdestinationChain - info
added the new enum value
SOLANA_TESTNETto thequeryrequest parametersourceChain - info
added the new enum value
TRONto thequeryrequest parameteramountSymbol - info
added the new enum value
TRON_MAINNETto thequeryrequest parameterdestinationChain - info
added the new enum value
TRON_MAINNETto thequeryrequest parametersourceChain - info
added the new enum value
UNIto thequeryrequest parameteramountSymbol - info
added the new enum value
USDGto thequeryrequest parameteramountSymbol - info
added the new enum value
USDSto thequeryrequest parameteramountSymbol - info
added the new enum value
USDT0to thequeryrequest parameteramountSymbol - info
added the new enum value
VIRTUALto thequeryrequest parameteramountSymbol - info
added the new enum value
WAVAXto thequeryrequest parameteramountSymbol - info
added the new enum value
WBNBto thequeryrequest parameteramountSymbol - info
added the new enum value
WBTCto thequeryrequest parameteramountSymbol - info
added the new enum value
WLDto thequeryrequest parameteramountSymbol - info
added the new enum value
WMONto thequeryrequest parameteramountSymbol - info
added the new enum value
anyBTCto thequeryrequest parameteramountSymbol - info
added the new enum value
cbBTCto thequeryrequest parameteramountSymbol - info
added the new enum value
sAVAXto thequeryrequest parameteramountSymbol - info
added the new enum value
stETHto thequeryrequest parameteramountSymbol - info
added the new enum value
wstETHto thequeryrequest parameteramountSymbol
- info
- info
added the new optional
queryrequest parameteramountSymbol - info
added the new enum value
HYPEREVM_MAINNETto thequeryrequest parameterdestinationChain - info
added the new enum value
HYPEREVM_MAINNETto thequeryrequest parametersourceChain - info
added the new enum value
LISK_MAINNETto thequeryrequest parameterdestinationChain - info
added the new enum value
LISK_MAINNETto thequeryrequest parametersourceChain - info
added the new enum value
MONAD_MAINNETto thequeryrequest parameterdestinationChain - info
added the new enum value
MONAD_MAINNETto thequeryrequest parametersourceChain - info
added the new enum value
MONAD_TESTNETto thequeryrequest parameterdestinationChain - info
added the new enum value
MONAD_TESTNETto thequeryrequest parametersourceChain - info
added the new enum value
OPTIMISM_MAINNETto thequeryrequest parameterdestinationChain - info
added the new enum value
OPTIMISM_MAINNETto thequeryrequest parametersourceChain - info
added the new enum value
OPTIMISM_TESTNETto thequeryrequest parameterdestinationChain - info
added the new enum value
OPTIMISM_TESTNETto thequeryrequest parametersourceChain - info
added the new enum value
POLYGON_MAINNETto thequeryrequest parameterdestinationChain - info
added the new enum value
POLYGON_MAINNETto thequeryrequest parametersourceChain
- info