Cambrian Pool Transaction Feed API

By Cambrian Network solana

GET /api/v1/solana/pool-transactions

Pool Transaction Feed

Retrieves a paginated list of trades/transactions for a specified Solana pool address including swaps, add liquidity, and remove liquidity events. This endpoint provides comprehensive transaction history for pool analysis and liquidity tracking.

Business Value

  • Pool Activity Monitoring: Track all trading activity and liquidity events for specific pools to understand usage patterns and volume trends
  • Liquidity Analysis: Monitor add/remove liquidity events to analyze pool health and provider behavior patterns
  • Trade Analytics: Access detailed swap transaction data including amounts, tokens, and timing for market analysis
  • DEX Integration: Support for multiple DEX protocols (Meteora, Orca, Raydium) provides comprehensive Solana ecosystem coverage
  • Historical Research: Paginated results enable deep historical analysis of pool performance and market dynamics

Endpoint Details

URL:

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

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

Query Parameters

Parameter Type Required Default Description
pool_address String Yes - Pool address (base58-44 string) to get transaction history for
days Integer Yes - Number of days to look back for transactions. Default is 1 day.
limit Integer No 100 Limit the number of results. Maximum 1000, minimum 1
offset Integer No 0 Offset the results, allows you to skip a number of rows before starting to return rows. Maximum 100000, minimum 0

Response Field Descriptions

Response Field Type Description
signature String Transaction signature hash
slot UInt64 Solana slot number when transaction was processed
txType String Type of transaction (trade, add liquidity, remove liquidity)
amountIn Float64 Input token amount in decimal format
amountOut Float64 Output token amount in decimal format
amountInRaw UInt128 Input token amount in raw smallest unit
amountOutRaw UInt128 Output token amount in raw smallest unit
tokenInSymbol String Symbol of the input token
tokenOutSymbol String Symbol of the output token
tokenInAddress String Mint address of the input token
tokenOutAddress String Mint address of the output token
dex String DEX protocol name (Meteora, Orca, Raydium, etc.)
poolAddress String Address of the pool contract
blockTime DateTime('UTC') UTC timestamp when the transaction was processed

Examples

1. Recent Pool Activity

Get the latest trading activity for a Meteora pool over the past 7 days.

curl -X GET "https://opabinia.cambrian.network/api/v1/solana/pool-transactions?pool_address=5rCf1DM8LjKTw4YqhnoLcngyZYeNnQqztScTogYHAS6&days=7&limit=5" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"

Response:

{
  "columns": [
    {"name": "signature", "type": "String"},
    {"name": "slot", "type": "UInt64"},
    {"name": "txType", "type": "String"},
    {"name": "amountIn", "type": "Float64"},
    {"name": "amountOut", "type": "Float64"},
    {"name": "amountInRaw", "type": "UInt128"},
    {"name": "amountOutRaw", "type": "UInt128"},
    {"name": "tokenInSymbol", "type": "String"},
    {"name": "tokenOutSymbol", "type": "String"},
    {"name": "tokenInAddress", "type": "String"},
    {"name": "tokenOutAddress", "type": "String"},
    {"name": "dex", "type": "String"},
    {"name": "poolAddress", "type": "String"},
    {"name": "blockTime", "type": "DateTime('UTC')"}
  ],
  "data": [
    ["4zyuQBSn5TFybnuoiXHfLoctXBJKMzBr8Pa2BGVhzvSgcar2yXoPAbCkEq5WrhJUY4cvqN7ZCs81V4UFwmcmwrYF", 396496490, "trade", 15.740494521, 1997.310528, 15740494521, 1997310528, "SOL", "USDC", "So11111111111111111111111111111111111111112", "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", "Meteora", "5rCf1DM8LjKTw4YqhnoLcngyZYeNnQqztScTogYHAS6", "2026-01-28T14:11:48+00:00"],
    ["321iwkNbMMADUdVzJ5NzBqBEeJ9HdVbjgQQJhrcd4qzAKovRaicbDdpUwkkE7c9bJ6QZ2cu5EVE38dPiDEYeBi8o", 396496490, "trade", 55.091730824, 6990.920872, 55091730824, 6990920872, "SOL", "USDC", "So11111111111111111111111111111111111111112", "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", "Meteora", "5rCf1DM8LjKTw4YqhnoLcngyZYeNnQqztScTogYHAS6", "2026-01-28T14:11:48+00:00"],
    ["wvRhmY9peMsoosVk5umE5ue7Nx7YbyJUMbEbVW6YRofx1vDEGZCLZ1DhRfPSJaUs31Z383ef1962j73eM7LX5Fi", 396496373, "trade", 0.064195316, 8.146128, 64195316, 8146128, "SOL", "USDC", "So11111111111111111111111111111111111111112", "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", "Meteora", "5rCf1DM8LjKTw4YqhnoLcngyZYeNnQqztScTogYHAS6", "2026-01-28T14:11:01+00:00"],
    ["62xUmaUtPSFRiLP47pMycbmWJ7T7iQErPGcpHWVv2pUUAahAvpRXjVVbLpxHeJT4QfgemzccLDG59RwRcG1Py5hB", 396496274, "trade", 0.716918, 0.00564512, 716918, 5645120, "USDC", "SOL", "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", "So11111111111111111111111111111111111111112", "Meteora", "5rCf1DM8LjKTw4YqhnoLcngyZYeNnQqztScTogYHAS6", "2026-01-28T14:10:22+00:00"],
    ["4dTS6ueRYG7VAGqA8R6XySbZHSUgWxmG6q2cn8iYAjNKYYNYiZTevT2PsCrE3SrHykVvW4Waxm1HSBbCuHKot3fL", 396496254, "trade", 21.407853, 0.168568637, 21407853, 168568637, "USDC", "SOL", "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", "So11111111111111111111111111111111111111112", "Meteora", "5rCf1DM8LjKTw4YqhnoLcngyZYeNnQqztScTogYHAS6", "2026-01-28T14:10:13+00:00"]
  ],
  "rows": 5
  // ... additional rows omitted for brevity
}

This example shows recent trading activity in a SOL/USDC pool on Meteora, with various swap transactions ranging from small (0.064 SOL) to large (55 SOL) trades.

2. Daily Pool Analysis

Analyze a full day of pool transactions with pagination for comprehensive daily reporting.

curl -X GET "https://opabinia.cambrian.network/api/v1/solana/pool-transactions?pool_address=5rCf1DM8LjKTw4YqhnoLcngyZYeNnQqztScTogYHAS6&days=1&limit=1000&offset=0" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"

Response:

{
  "columns": [
    {"name": "signature", "type": "String"},
    {"name": "slot", "type": "UInt64"},
    {"name": "txType", "type": "String"},
    {"name": "amountIn", "type": "Float64"},
    {"name": "amountOut", "type": "Float64"},
    {"name": "amountInRaw", "type": "UInt128"},
    {"name": "amountOutRaw", "type": "UInt128"},
    {"name": "tokenInSymbol", "type": "String"},
    {"name": "tokenOutSymbol", "type": "String"},
    {"name": "tokenInAddress", "type": "String"},
    {"name": "tokenOutAddress", "type": "String"},
    {"name": "dex", "type": "String"},
    {"name": "poolAddress", "type": "String"},
    {"name": "blockTime", "type": "DateTime('UTC')"}
  ],
  "data": [...],
  "rows": 850
}

This configuration retrieves up to 1000 transactions from the past 24 hours, enabling comprehensive daily volume and activity analysis for the specified pool.

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/pool-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/pool-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-time-bounded - Get detailed transaction data for any SPL token across major Solana DEXs with precise Unix timestamp filtering for historical analysis and event-driven research
  • /api/v1/solana/token-transactions - Retrieve a paginated list of trades/transactions for a specified Solana token address across all DEXes
  • /api/v1/solana/token-pool-search - Find pools containing a specific token and retrieve comprehensive trading statistics including 24h volume, trade counts, and buy/sell ratios
  • /api/v1/solana/orca/pools - Retrieves a list of all Orca pools registered in the backend database
  • /api/v1/solana/meteora-dlmm/pools - This endpoint lists meteora pools