Get Bridge Swap Quotes
Retrieves a comprehensive list of swap quotations from multiple bridges for a specified token pair pool. By aggregating swap quotes across various bridges, it enables users to compare rates and identify the most favorable trading option. The response includes detailed information such as the Bridge name and identifier, the input amount, the swap path, and the resulting output amounts from each bridge, making it a valuable tool for pricing data and swap execution decisions.
💡 Compute Unit Value: 85 (Fixed)
Request
- Base URLhttps://svc.blockdaemon.com
- URLhttps://svc.blockdaemon.com/defi/v1/bridge/quotes
- AuthAPI key in header X-API-Key
Query parameters
The unique chain ID to specify the destination chain. Find more here.
Symbol of the source chain.
Symbol of the token to swap.
Symbol of the token to be received after the swap.
Contract address of the source (input) token on the source chain. For EVM chains, use a checksummed hex address (e.g., 0x...). Either srcTokenAddress or srcTokenSymbol must be provided.
Contract address of the destination (output) token on the destination chain. For EVM chains, use a checksummed hex address (e.g., 0x...). Either dstTokenAddress or dstTokenSymbol must be provided.
Amount of the input token to provide, specified in the token's smallest denomination (base units). Do not send human-readable decimal values. Examples: to swap 1 WETH (18 decimals), use "1000000000000000000"; to swap 1 USDC (6 decimals), use "1000000".
Comma-separated list of bridge protocol IDs (bridgeId values) to exclude from routing. Find available IDs via the /support endpoint.
A comma-separated list of currency symbols to convert the amount into, such as 'USD,EUR'. This parameter is optional and allows retrieving values in multiple fiat currencies.
Maximum acceptable price impact as a percentage (e.g., '0.01' means 0.01% price impact). Quotes that would cause a price impact exceeding this value are excluded from results.
Response
Successful response
Example response
{
"status": 200,
"msg": "success",
"data": [
{
"bridgeId": "600",
"bridgeName": "SquidRouterV2",
"srcChainId": "1",
"dstChainId": "42161",
"srcTokenSymbol": "USDT",
"dstTokenSymbol": "USDT",
"srcTokenAddress": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"dstTokenAddress": "0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9",
"amountIn": "100000000",
"amountsOut": [
"100000000",
"99972981"
],
"prices": {
"usd": [
{
"chainId": "1",
"0xdAC17F958D2ee523a2206206994597C13D831ec7": "0.9995147323301254"
},
{
"chainId": "42161",
"0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9": "0.9995147323301254"
}
]
},
"priceImpact": {
"percentage": "0.0270",
"value": "0.027019"
}
},
{
"bridgeId": "500",
"bridgeName": "StargateV2",
"srcChainId": "1",
"dstChainId": "42161",
"srcTokenSymbol": "USDT",
"dstTokenSymbol": "USDT",
"srcTokenAddress": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"dstTokenAddress": "0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9",
"amountIn": "100000000",
"amountsOut": [
"100000000",
"99963199"
],
"prices": {
"usd": [
{
"chainId": "1",
"0xdAC17F958D2ee523a2206206994597C13D831ec7": "0.9995147323301254"
},
{
"chainId": "42161",
"0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9": "0.9995147323301254"
}
]
},
"priceImpact": {
"percentage": "0.0368",
"value": "0.036801"
}
},
{
"bridgeId": "100",
"bridgeName": "Stargate",
"srcChainId": "1",
"dstChainId": "42161",
"srcTokenSymbol": "USDT",
"dstTokenSymbol": "USDT",
"srcTokenAddress": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"dstTokenAddress": "0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9",
"amountIn": "100000000",
"amountsOut": [
"100000000",
"99950000"
],
"prices": {
"usd": [
{
"chainId": "1",
"0xdAC17F958D2ee523a2206206994597C13D831ec7": "0.9995147323301254"
},
{
"chainId": "42161",
"0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9": "0.9995147323301254"
}
]
},
"priceImpact": {
"percentage": "0.0500",
"value": "0.050000"
}
},
{
"bridgeId": "400",
"bridgeName": "AllbridgeCore",
"srcChainId": "1",
"dstChainId": "42161",
"srcTokenSymbol": "USDT",
"dstTokenSymbol": "USDT",
"srcTokenAddress": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
"dstTokenAddress": "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9",
"amountIn": "100000000",
"amountsOut": [
"100000000",
"99505517"
],
"prices": {
"usd": [
{
"chainId": "1",
"0xdAC17F958D2ee523a2206206994597C13D831ec7": "0.9995147323301254"
},
{
"chainId": "42161",
"0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9": "0.9995147323301254"
}
]
},
"priceImpact": {
"percentage": "0.4945",
"value": "0.494483"
}
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.