Cambrian Token Details Multi API

By Cambrian Network solana

GET /api/v1/solana/token-details

Token Details

Overview

Retrieve comprehensive details for multiple Solana tokens simultaneously, including price, trading activity, volume, and holder metrics. Returns the same data structure as the single token_details endpoint but supports batching up to 50 tokens in a single request.

Business Value

  • Market Analysis: Access current price and trading volume data for investment decisions and market research
  • Trading Intelligence: Get 1h, 24h, and 7-day trading statistics for algorithmic trading strategies
  • Portfolio Tracking: Monitor token metrics including holder count and fully diluted valuation for portfolio management
  • Risk Assessment: Analyze buy/sell ratios and volume patterns to assess token liquidity and market sentiment
  • Token Research: Access fundamental token data including symbol, name, decimals, and supply information

Endpoint Details

URL:

https://api.cambrian.org/solana/token-details

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

Query Parameters

Parameter Type Required Default Description
token_addresses string Yes - Comma-separated Solana token mint addresses (max 50, base58). Example: So11111111111111111111111111111111111111112,DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263

Response Field Descriptions

Response Field Type Description
tokenAddress String Solana token mint address
symbol String Token symbol
name String Token name
decimals UInt8 Number of decimal places for the token
priceUSD Float64 Current price of the token in USD
lastTradeUnixTime UInt32 Unix timestamp of the last recorded trade
lastTradeHumanTime String Human-readable timestamp of the last recorded trade
trade1hCount UInt64 Number of trades in the last 1 hour
trade24hCount UInt64 Number of trades in the last 24 hours
trade7dCount UInt64 Number of trades in the last 7 days
volume1h Float64 Trading volume in the last 1 hour, denominated in the token
volume24h Float64 Trading volume in the last 24 hours, denominated in the token
volume7d Float64 Trading volume in the last 7 days, denominated in the token
volume1hUSD Float64 Trading volume in the last 1 hour, in USD
volume24hUSD Float64 Trading volume in the last 24 hours, in USD
volume7dUSD Float64 Trading volume in the last 7 days, in USD
buy24hCount UInt64 Number of buy trades in the last 24 hours
sell24hCount UInt64 Number of sell trades in the last 24 hours
buyVolume24h Float64 Buy volume in the last 24 hours, denominated in the token
sellVolume24h Float64 Sell volume in the last 24 hours, denominated in the token
buyVolume24hUSD Float64 Buy volume in the last 24 hours, in USD
sellVolume24hUSD Float64 Sell volume in the last 24 hours, in USD
holderCount UInt64 Total number of holders of the token

Examples

1. Retrieve details for a single token

Fetch comprehensive trading and holder metrics for Wrapped SOL by passing its mint address.

curl -X GET "https://api.cambrian.org/solana/token-details?token_addresses=So11111111111111111111111111111111111111112" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"

Response:

[
  {
    "columns": [
      {
        "name": "tokenAddress",
        "type": "String"
      },
      {
        "name": "symbol",
        "type": "String"
      },
      {
        "name": "name",
        "type": "String"
      },
      {
        "name": "decimals",
        "type": "UInt8"
      },
      {
        "name": "priceUSD",
        "type": "Float64"
      },
      {
        "name": "lastTradeUnixTime",
        "type": "UInt32"
      },
      {
        "name": "lastTradeHumanTime",
        "type": "String"
      },
      {
        "name": "trade1hCount",
        "type": "UInt64"
      },
      {
        "name": "trade24hCount",
        "type": "UInt64"
      },
      {
        "name": "trade7dCount",
        "type": "UInt64"
      },
      {
        "name": "volume1h",
        "type": "Float64"
      },
      {
        "name": "volume24h",
        "type": "Float64"
      },
      {
        "name": "volume7d",
        "type": "Float64"
      },
      {
        "name": "volume1hUSD",
        "type": "Float64"
      },
      {
        "name": "volume24hUSD",
        "type": "Float64"
      },
      {
        "name": "volume7dUSD",
        "type": "Float64"
      },
      {
        "name": "buy24hCount",
        "type": "UInt64"
      },
      {
        "name": "sell24hCount",
        "type": "UInt64"
      },
      {
        "name": "buyVolume24h",
        "type": "Float64"
      },
      {
        "name": "sellVolume24h",
        "type": "Float64"
      },
      {
        "name": "buyVolume24hUSD",
        "type": "Float64"
      },
      {
        "name": "sellVolume24hUSD",
        "type": "Float64"
      },
      {
        "name": "holderCount",
        "type": "UInt64"
      }
    ],
    "data": [
      [
        "So11111111111111111111111111111111111111112",
        "SOL",
        "Wrapped SOL",
        9,
        100.5731742301474,
        1787647684,
        "2026-08-25 08:48:04",
        1092202,
        27327567,
        172022202,
        2452535.392538375,
        63621196.29324557,
        408146949.37494725,
        246659269.33936495,
        6398585659.530994,
        41048634250.98972,
        10682675,
        16644892,
        31843336.800796207,
        31777859.49244936,
        3202585460.1357417,
        3196000199.395253,
        10552299
      ]
    ],
    "rows": 1
  }
]

Result collections are limited to 10 items. The response shows Wrapped SOL's current price (~$100.57), 24-hour trading activity (27.3M trades), and holder count (10.55M), all derived from the columns/data schema.

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://x402.cambrian.org/solana/token-details"
);
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://x402.cambrian.org/solana/token-details")
        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 through 5 automatically.

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