Get Pools
Retrieves quotes for a specific token pair from multiple DEXs. It calculates the expected output for a given input amount (amountIn) on each DEX, enabling users to compare liquidity and pricing across platforms and choose the best option for their trades.
💡 Compute Unit Value: 80 (Fixed)
Request
- Base URLhttps://svc.blockdaemon.com
- URLhttps://svc.blockdaemon.com/defi/v1/dex/getpools
- AuthAPI key in header X-API-Key
Query parameters
Comma-separated values of dex IDs. Find more here.
Array of token contract addresses for the pool pair to look up. Provide [tokenAAddress, tokenBAddress].
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".
Response
Successful response
Example response
{
"status": 200,
"msg": "success",
"data": [
{
"dexId": "1300",
"value": "99431"
},
{
"dexId": "1400",
"value": "130999"
},
{
"dexId": "1500",
"value": "99977"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.