Cambrian Token Transaction Feed API

By Cambrian Network solana

GET /api/v1/solana/token-transactions

Token Transactions

Retrieves a paginated list of trades/transactions for a specified Solana token address across all DEXes. This endpoint provides comprehensive transaction data including buy/sell activities, liquidity additions/removals, and related DEX information.

Business Value

  • Real-time Trading Intelligence: Access up-to-the-minute transaction data across all major Solana DEXes to identify trading patterns and market movements
  • Cross-DEX Analytics: Monitor token activity across Meteora, Raydium CLMM, Pump.fun AMM, and Orca in a unified dataset for comprehensive market analysis
  • Risk Management: Filter transactions by minimum USD value and transaction type to focus on meaningful trades and avoid noise from micro-transactions
  • Portfolio Tracking: Track specific token transactions within defined time periods to analyze trading performance and market timing
  • Arbitrage Opportunities: Identify price discrepancies and trading volumes across different DEXes to spot potential arbitrage opportunities

Endpoint Details

URL:

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

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

Query Parameters

Parameter Type Required Default Description
token_address string Yes - Token program address (base58-44 string). See tokens for valid addresses
days integer Yes - Number of days to look back for transactions. Default is 1 day
after_time integer No 1735689600 Unix timestamp - start time for data range
before_time integer No 1735776000 Unix timestamp - end time for data range
tx_type string No - Transaction type filter: buy, sell, add_liquidity or remove_liquidity
dex string No - Filter by DEX: Meteora, Raydium CLMM, Pump.fun AMM or Orca
pool_address string No - Filter trades by pool contract address
min_value_usd number No - Minimum trade value in USD
limit integer No 100 Limit the number of results (max 1000)
offset integer No 0 Offset the results (max 100000)

Response Field Descriptions

Response Field Type Description
transactionHash String Unique hash identifier for the transaction
slot UInt64 Solana blockchain slot number when transaction occurred
blockTime UInt32 Unix timestamp of when the transaction was processed
transactionType String Type of transaction (buy, sell, add_liquidity, remove_liquidity)
tokenAmount Float64 Amount of tokens involved in the transaction
valueUSD Float64 USD value of the transaction at time of execution
priceUSD Float64 USD price per token at time of transaction
dex String Name of the decentralized exchange where transaction occurred
poolAddress String Contract address of the liquidity pool used
instructionIndex UInt32 Index of the instruction within the transaction

Examples

1. Basic Token Transaction History

Retrieve the most recent token transactions for wrapped SOL (WSOL) over the past day.

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

Response:

{
  "columns": [
    {
      "name": "transactionHash",
      "type": "String"
    },
    {
      "name": "slot",
      "type": "UInt64"
    },
    {
      "name": "blockTime",
      "type": "UInt32"
    },
    {
      "name": "transactionType",
      "type": "String"
    },
    {
      "name": "tokenAmount",
      "type": "Float64"
    },
    {
      "name": "valueUSD",
      "type": "Float64"
    },
    {
      "name": "priceUSD",
      "type": "Float64"
    },
    {
      "name": "dex",
      "type": "String"
    },
    {
      "name": "poolAddress",
      "type": "String"
    },
    {
      "name": "instructionIndex",
      "type": "UInt32"
    }
  ],
  "data": [
    [
      "28Qmb7qeEc9MsUpPKNgmghPXu8ibJi1SCH7xkTqE5YV4zSj2H6X8Pu4ki9RyKmApyZ4gsUhYnYtnioQX6N4fRUVh",
      396749997,
      1769710993,
      "sell",
      2.680674544,
      313.25639105259273,
      116.85730062000124,
      "Pump.fun AMM",
      "72AEHWF47PipGMUHmPxDX5F2yqmTRPip96DHsC1tCfQe",
      182
    ],
    [
      "2MUeDxeqDSe5hMGyjziJfVj3t5USpHypaCQXStzAsd4L2X3AJFsL4jgmtfy6yFNnmm8WNo7Tvip6d87jtaesEtfy",
      396749997,
      1769710993,
      "sell",
      0.772201062,
      90.23733164121822,
      116.85730062000124,
      "Pump.fun AMM",
      "6JAbQ7mFk568t6ML1uCpFNS1yyzpabFQpjmCN3UrnyEU",
      175
    ],
    [
      "zU6v6EeRY4k5Y3DZ36dPBGEdxguPQUUihPWgHeg63VqzCz3ttUA2ofL1qeD9Zp6DHimgo3BcJnrLSh8r1L9gEdM",
      396749997,
      1769710993,
      "buy",
      8.542084475,
      998.2049334165204,
      116.85730062000124,
      "Orca",
      "Czfq3xZZDmsdGdUyrNLtRhGc47cXcZtLG4crryfu44zE",
      175
    ],
    [
      "33KgQiYJ8cE9gbtpd1yKPGJR1LxvYuVo4uFumffYk9Gona9KTTmJjZr2VEJUEea4Tv322ejBdFAQbqS8nYFkLxtF",
      396749997,
      1769710993,
      "sell",
      7.381275374,
      862.5559153385301,
      116.85730062000124,
      "Pump.fun AMM",
      "79g4FvF1StkAw6bfojeqQ6ocSVJMic6S94GoSVGpYaWk",
      164
    ],
    [
      "4sAWiyUXBfd1gc4ExMCztodZWSRu39pybRjMFVfACFmhX5J6muwcEVofbiu13RNqDLkhYWDPgWGR23pyMjFyWwUC",
      396749997,
      1769710993,
      "buy",
      1.172238685,
      136.98464841143993,
      116.85730062000124,
      "Pump.fun AMM",
      "AMy82imccKV1Xxoa4fp4Tim6fNSEF8QWDwzQSFBL54Z6",
      162
    ]
  ],
  "rows": 5
  // ... additional rows omitted for brevity
}

This returns a columnar format with recent WSOL transactions across multiple DEXes, showing both buy and sell activities with their corresponding USD values and prices.

2. Filtered High-Value Transactions

Retrieve only high-value buy transactions (above $500 USD) for WSOL from Orca DEX.

curl -X GET "https://opabinia.cambrian.network/api/v1/solana/token-transactions?token_address=So11111111111111111111111111111111111111112&days=1&tx_type=buy&dex=Orca&min_value_usd=500" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"

Response:

{
  "columns": [
    {
      "name": "transactionHash",
      "type": "String"
    },
    {
      "name": "slot",
      "type": "UInt64"
    },
    {
      "name": "blockTime",
      "type": "UInt32"
    },
    {
      "name": "transactionType",
      "type": "String"
    },
    {
      "name": "tokenAmount",
      "type": "Float64"
    },
    {
      "name": "valueUSD",
      "type": "Float64"
    },
    {
      "name": "priceUSD",
      "type": "Float64"
    },
    {
      "name": "dex",
      "type": "String"
    },
    {
      "name": "poolAddress",
      "type": "String"
    },
    {
      "name": "instructionIndex",
      "type": "UInt32"
    }
  ],
  "data": [
    [
      "zU6v6EeRY4k5Y3DZ36dPBGEdxguPQUUihPWgHeg63VqzCz3ttUA2ofL1qeD9Zp6DHimgo3BcJnrLSh8r1L9gEdM",
      396749997,
      1769710993,
      "buy",
      8.542084475,
      998.2049334165204,
      116.85730062000124,
      "Orca",
      "Czfq3xZZDmsdGdUyrNLtRhGc47cXcZtLG4crryfu44zE",
      175
    ]
  ],
  "rows": 1
}

This filtered response shows only large buy transactions on Orca DEX, useful for identifying significant market movements and whale activity.

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-transactions"
);
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-transactions")
        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/pool-transactions - Retrieve transaction data for specific pool addresses including swaps and liquidity events
  • /api/v1/solana/pool-transactions-time-bounded - Get detailed transaction data with precise Unix timestamp filtering for historical analysis
  • /api/v1/solana/tokens - Returns a paginated list of known tokens for the Solana chain
  • /api/v1/solana/tokens/holders - Get current token holders for a specific Solana token sorted by balance
  • /api/v1/solana/ohlcv/token - Retrieve Open, High, Low, Close, and Volume data for any SPL token