Cambrian Token Pool Search API

By Cambrian Network solana

GET /api/v1/solana/token-pool-search

Token Pool Search

Search for liquidity pools containing a specific token address on Solana. Returns detailed pool information including DEX source, pair tokens, trading volumes, and transaction counts for the last 24 hours.

Business Value

  • Pool Discovery: Quickly find all liquidity pools where a specific token is tradeable
  • Volume Analysis: Compare 24-hour trading volumes across different DEXes and pool pairs
  • Trading Insights: Access buy/sell ratio data to understand market sentiment for each pool
  • DEX Comparison: Identify which decentralized exchanges have the most active pools for a token
  • Liquidity Mapping: Understand the full trading landscape for any SPL token across the Solana ecosystem

Endpoint Details

URL:

https://opabinia.cambrian.network/api/v1/solana/token-pool-search

Method: GET
Authentication: Required via X-API-Key header

Query Parameters

Parameter Type Required Default Description
token_address String Yes - Token contract address (base58 format) to search pools for
limit Integer No 20 Limit the number of results (1-1000)
offset Integer No 0 Offset the results, skip a number of rows before starting to return rows (0-100000)

Response Field Descriptions

Response Field Type Description
tokenAddress String Address of the token contract
tokenSymbol String Token symbol (e.g., SOL, USDC)
tokenName String Full name of the token
tokenDecimals UInt8 Number of decimal places for the token
tokenPrice Float64 Current price of the token in USD
poolAddress String Address of the liquidity pool contract
poolDex String Name of the decentralized exchange (e.g., orca, pump_amm)
poolPairToken String Symbol of the paired token in the pool
volume24hUSD Float64 Trading volume in USD over the last 24 hours
volume24hToken Float64 Trading volume in token units over the last 24 hours
trades24hCount UInt64 Total number of trades in the last 24 hours
buys24hCount UInt64 Number of buy transactions in the last 24 hours
sells24hCount UInt64 Number of sell transactions in the last 24 hours

Examples

1. Find SOL Pools

Search for all liquidity pools containing Wrapped SOL token.

curl -X GET "https://opabinia.cambrian.network/api/v1/solana/token-pool-search?token_address=So11111111111111111111111111111111111111112" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"

Response:

[
  {
    "columns": [
      {
        "name": "tokenAddress",
        "type": "String"
      },
      {
        "name": "tokenSymbol",
        "type": "String"
      },
      {
        "name": "tokenName",
        "type": "String"
      },
      {
        "name": "tokenDecimals",
        "type": "UInt8"
      },
      {
        "name": "tokenPrice",
        "type": "Float64"
      },
      {
        "name": "poolAddress",
        "type": "FixedString(44)"
      },
      {
        "name": "poolDex",
        "type": "String"
      },
      {
        "name": "poolPairToken",
        "type": "String"
      },
      {
        "name": "volume24hUSD",
        "type": "Float64"
      },
      {
        "name": "volume24hToken",
        "type": "Float64"
      },
      {
        "name": "trades24hCount",
        "type": "UInt64"
      },
      {
        "name": "buys24hCount",
        "type": "UInt64"
      },
      {
        "name": "sells24hCount",
        "type": "UInt64"
      }
    ],
    "data": [
      [
        "So11111111111111111111111111111111111111112",
        "SOL",
        "Wrapped SOL",
        9,
        126.67799481335103,
        "Czfq3xZZDmsdGdUyrNLtRhGc47cXcZtLG4crryfu44zE",
        "orca",
        "USDC",
        138082743.77596822,
        1090029.440230887,
        42440,
        21926,
        20514
      ],
      [
        "So11111111111111111111111111111111111111112",
        "SOL",
        "Wrapped SOL",
        9,
        126.67799481335103,
        "dVZHR2CUg6pk3BTgsPhtc7aUN2vUjT6brAp1osTs5cE",
        "pump_amm",
        "WARd",
        98482203.07046166,
        777421.5499350664,
        301438,
        159626,
        141812
      ],
      [
        "So11111111111111111111111111111111111111112",
        "SOL",
        "Wrapped SOL",
        9,
        126.67799481335103,
        "GgGkPpNLNRJdhnFCANVwNPcEvQmQjDuSijtUqr64q9jK",
        "pump_amm",
        "RNBW",
        90988307.01254645,
        718264.503212336,
        290345,
        154576,
        135769
      ],
      [
        "So11111111111111111111111111111111111111112",
        "SOL",
        "Wrapped SOL",
        9,
        126.67799481335103,
        "DP7SKWQiL8RUs5LTHtE1opifvrqKEopCNRN2Qmau52mR",
        "pump_amm",
        "COIN",
        90836448.45768498,
        717065.7270943115,
        9166,
        4841,
        4325
      ],
      [
        "So11111111111111111111111111111111111111112",
        "SOL",
        "Wrapped SOL",
        9,
        126.67799481335103,
        "vBFrCdrkkH7jddjcb5v1doHfu2bBDAAt1RzeRCDQun9",
        "pump_amm",
        "TEa",
        88779680.0122866,
        700829.5335199749,
        295041,
        156841,
        138200
      ]
    ],
    "rows": 5
    // ... additional rows omitted for brevity
  }
]

Returns pools ranked by trading volume, showing that the Orca SOL-USDC pool has the highest 24-hour volume at $138M with 42,440 trades. The data reveals both established DEXes like Orca and newer pump.fun AMM pools.

2. Limited Pool Results

Search for SOL pools with a limit of 10 results.

curl -X GET "https://opabinia.cambrian.network/api/v1/solana/token-pool-search?token_address=So11111111111111111111111111111111111111112&limit=10" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"

Response:

[
  {
    "columns": [
      {
        "name": "tokenAddress",
        "type": "String"
      },
      {
        "name": "tokenSymbol",
        "type": "String"
      },
      {
        "name": "tokenName",
        "type": "String"
      },
      {
        "name": "tokenDecimals",
        "type": "UInt8"
      },
      {
        "name": "tokenPrice",
        "type": "Float64"
      },
      {
        "name": "poolAddress",
        "type": "FixedString(44)"
      },
      {
        "name": "poolDex",
        "type": "String"
      },
      {
        "name": "poolPairToken",
        "type": "String"
      },
      {
        "name": "volume24hUSD",
        "type": "Float64"
      },
      {
        "name": "volume24hToken",
        "type": "Float64"
      },
      {
        "name": "trades24hCount",
        "type": "UInt64"
      },
      {
        "name": "buys24hCount",
        "type": "UInt64"
      },
      {
        "name": "sells24hCount",
        "type": "UInt64"
      }
    ],
    "data": [
      [
        "So11111111111111111111111111111111111111112",
        "SOL",
        "Wrapped SOL",
        9,
        126.67799481335103,
        "Czfq3xZZDmsdGdUyrNLtRhGc47cXcZtLG4crryfu44zE",
        "orca",
        "USDC",
        138082743.77596822,
        1090029.440230887,
        42440,
        21926,
        20514
      ],
      [
        "So11111111111111111111111111111111111111112",
        "SOL",
        "Wrapped SOL",
        9,
        126.67799481335103,
        "dVZHR2CUg6pk3BTgsPhtc7aUN2vUjT6brAp1osTs5cE",
        "pump_amm",
        "WARd",
        98482203.07046166,
        777421.5499350664,
        301438,
        159626,
        141812
      ],
      [
        "So11111111111111111111111111111111111111112",
        "SOL",
        "Wrapped SOL",
        9,
        126.67799481335103,
        "GgGkPpNLNRJdhnFCANVwNPcEvQmQjDuSijtUqr64q9jK",
        "pump_amm",
        "RNBW",
        90988307.01254645,
        718264.503212336,
        290345,
        154576,
        135769
      ],
      [
        "So11111111111111111111111111111111111111112",
        "SOL",
        "Wrapped SOL",
        9,
        126.67799481335103,
        "DP7SKWQiL8RUs5LTHtE1opifvrqKEopCNRN2Qmau52mR",
        "pump_amm",
        "COIN",
        90836448.45768498,
        717065.7270943115,
        9166,
        4841,
        4325
      ],
      [
        "So11111111111111111111111111111111111111112",
        "SOL",
        "Wrapped SOL",
        9,
        126.67799481335103,
        "vBFrCdrkkH7jddjcb5v1doHfu2bBDAAt1RzeRCDQun9",
        "pump_amm",
        "TEa",
        88779680.0122866,
        700829.5335199749,
        295041,
        156841,
        138200
      ]
    ],
    "rows": 5
    // ... additional rows omitted for brevity
  }
]

Returns the top 10 pools by volume, allowing focused analysis on the most active trading venues for the specified token.

x402 Payment Option

This endpoint supports pay-per-use access via the x402 payment protocol (v2) — pay $0.05 USDC per request using blockchain micropayments. No API key required.

Quick Start (TypeScript)

npm install @x402/fetch @x402/evm viem
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const signer = privateKeyToAccount(process.env.EVM_PRIVATE_KEY as `0x${string}`);
const client = new x402Client();
client.register("eip155:*", new ExactEvmScheme(signer));

const fetchWithPayment = wrapFetchWithPayment(fetch, client);
const response = await fetchWithPayment(
  "https://deep42.cambrian.network/api/v1/solana/token-pool-search"
);
const data = await response.json();

Quick Start (Python)

pip install "x402[httpx]"
import asyncio, os
from eth_account import Account
from x402 import x402Client
from x402.http.clients import x402HttpxClient
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

async def main():
    client = x402Client()
    account = Account.from_key(os.getenv("EVM_PRIVATE_KEY"))
    register_exact_evm_client(client, EthAccountSigner(account))

    async with x402HttpxClient(client) as http:
        response = await http.get("https://deep42.cambrian.network/api/v1/solana/token-pool-search")
        print(response.json())

asyncio.run(main())

Payment Flow

  1. Send a normal request to the endpoint (no API key needed)
  2. Server returns 402 Payment Required with payment details
  3. The x402 SDK automatically signs a payment authorization with your wallet
  4. The SDK resubmits the request with the signed payment
  5. Server verifies payment and returns the API response

The x402 SDK handles steps 2–5 automatically.

Network: Base (chain ID 8453) | Currency: USDC | Price: $0.05 per request


Related Endpoints

  • /api/v1/solana/ohlcv/pool - Retrieve OHLCV data for individual pool contracts
  • /api/v1/solana/orca/pools - Retrieves a list of all Orca pools registered in the backend database
  • /api/v1/solana/pool-transactions - Get detailed transaction data for specific pools