dex

Get Pool

Retrieves pools of all tick spacing and pool fees along with the pool and tokens individual liquidity for a specific token pair.

💡 Compute Unit Value: 105 (Fixed)

get/defi/v1/dex/getpool

Request

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

Query parameters

dexId'1000' | '1001' | '1300' | '1301' | '1305' | '1306' | '1307' | '1308' | '1309' | '1310' | '1100' | '1101' | '1200' | '1201' | '2800' | '2808' | '2809' | '1500' | '1400' | '1402' | '2100' | '2101' | '3000' | '3001' | '3600' | '3800' | '3700'

The unique ID to specify the decentralized exchange (DEX) within a particular blockchain. Find more here.

Example:1000
tokenAstring required

Address of the first token of the pool.

Example:0x514910771AF9Ca656af840dff83E8264EcF986CA
tokenBstring required

Address of the second token of the pool.

Example:0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
tokenCstring

Address of the third token of the pool.

Example:0x514910771AF9Ca656af840dff83E8264EcF986CA
tokenDstring

Address of the fourth token of the pool.

Example:0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48

Response

Successful response

statusinteger
msgstring
dataobject

Example response

{
  "status": 200,
  "msg": "success",
  "data": [
    {
      "poolAddress": "0x13394005C1012e708fCe1EB974F1130fDc73a5Ce",
      "poolFees": "100",
      "tickSpacing": "1",
      "tokensLiquidity": {
        "PYUSD": "181345903597",
        "USDC": "10747105612"
      },
      "liquidity": "368837504235914"
    },
    {
      "poolAddress": "0xaA4C9d6E5e349f319aBb625aa8dca5F52AbEA757",
      "poolFees": "500",
      "tickSpacing": "10",
      "tokensLiquidity": {
        "PYUSD": "232537801158",
        "USDC": "51001268304"
      },
      "liquidity": "538650478503468"
    },
    {
      "poolAddress": "0xd3F5c377A8506af29AEAfBc90D1E5C6534f197b4",
      "poolFees": "3000",
      "tickSpacing": "60",
      "tokensLiquidity": {
        "PYUSD": "27672724088",
        "USDC": "26267334299"
      },
      "liquidity": "7671336300529"
    },
    {
      "poolAddress": "0xebdA64772F41478d054293C15CC40542eC17E29D",
      "poolFees": "10000",
      "tickSpacing": "200",
      "tokensLiquidity": {
        "PYUSD": "663526804",
        "USDC": "663530883"
      },
      "liquidity": "13605769032"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.