Get quotes from all source chains to destination
Changed onShows Alice all her options to send money to a specific destination chain, including same-chain transfers
Request
- Base URLhttps://api.chainrails.io/api/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Destination blockchain where Alice wants to send money
Amount in human readable format (supports decimals, e.g., "1.5", "100", "0.001")
Output token address
Optional recipient address
Comma-separated chains to exclude from results
Response
Multi-source quotes retrieved successfully
Example response
{
"destinationChain": "ARBITRUM_TESTNET",
"quotes": [
{
"sourceChain": "BASE_TESTNET",
"destinationChain": "ARBITRUM_TESTNET",
"totalFee": "18000",
"totalFeeFormatted": "0.018",
"bridge": "CCTP",
"paymentOptions": [
{
"token": "USDC",
"tokenAddress": "0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d",
"depositAmount": "1518000",
"depositAmountFormatted": "1.518"
}
]
}
],
"cheapestOption": {
"sourceChain": "ARBITRUM_TESTNET",
"destinationChain": "ARBITRUM_TESTNET",
"totalFee": "10000",
"totalFeeFormatted": "0.01",
"paymentOptions": [
{
"token": "USDC",
"tokenAddress": "0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d",
"depositAmount": "1010000",
"depositAmountFormatted": "1.01"
}
]
}
}Changes
- info
added the new enum value
SOLANA_MAINNETto thequeryrequest parameterdestinationChain - info
added the new enum value
SOLANA_TESTNETto thequeryrequest parameterdestinationChain - info
added the new enum value
TRON_MAINNETto thequeryrequest parameterdestinationChain
- info
- info
added the optional property
///to the response with the status - info
added the optional property
////to the response with the status
- info