dex

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)

get/defi/v1/dex/getpools

Request

  • Base URL
    https://svc.blockdaemon.com
  • URL
    https://svc.blockdaemon.com/defi/v1/dex/getpools
  • Auth
    API key in header X-API-Key

Query parameters

dexId'1000' | '1900' | '1300' | '1305' | '1306' | '1307' | '1308' | '1309' | '1310' | '1100' | '1200' | '1201' | '2900' | '2901' | '2800' | '2808' | '2809' | '1500' | '1400' | '1402' | '2300' | '2100' | '2101' | '2500' | '2501' | '2700' | '2600' | '2400' | '2401' | '1600' | '1602' | '1604' | '1605' | '1607' | '1608' | '1700' | '1701' | '1702' | '1703' | '1704' | '1706' | '1707' | '2200' | '2201' | '2202' | '2203' | '2204' | '2205' | '2206' | '3000' | '3001' | '3100' | '3300' | '3301'

Comma-separated values of dex IDs. Find more here.

Example:1000
pathstring required

Array of token contract addresses for the pool pair to look up. Provide [tokenAAddress, tokenBAddress].

Example:0x514910771AF9Ca656af840dff83E8264EcF986CA,0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
amountInstring required

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".

Example:1000000000000000000

Response

Successful response

statusinteger
msgstring
dataobject

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.