Cambrian List Tokens API
GET /api/v1/solana/tokens
List Solana Tokens
Overview
Returns a paginated list of known tokens on the Solana chain, including each token's program ID (mint address), symbol, name, and decimal precision. Use limit and offset to page through the full token registry.
Business Value
- Token Discovery: Access a comprehensive database of Solana tokens for portfolio tracking, DeFi applications, and market analysis
- Integration Support: Standardized token metadata enables seamless integration with wallets, DEXs, and trading platforms
- Data Reliability: Curated token list ensures accurate symbol and decimal information for financial calculations
- Scalable Access: Pagination support allows efficient handling of large token datasets without performance impact
- Real-time Updates: Access to the latest token additions and metadata changes in the Solana ecosystem
Endpoint Details
URL:
https://api.cambrian.org/solana/tokens
Method: GET
Authentication: Required via X-API-Key header
Query Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| limit | integer | No | 100 | Limit the number of results. (min: 1, max: 1000) |
| offset | integer | No | 0 | Offset the results, allows you to skip a number of rows before starting to return rows. (min: 0, max: 100000) |
Response Field Descriptions
| Response Field | Type | Description |
|---|---|---|
| programId | String | The token's program ID (mint address) on Solana |
| symbol | String | The token's ticker symbol |
| name | String | The token's full name |
| decimals | UInt8 | Number of decimal places used to convert raw token amounts to display values |
Examples
1. List Solana Tokens
Retrieve a page of known Solana tokens, limited to 10 results.
curl -X GET "https://api.cambrian.org/solana/tokens?limit=10" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json"
Response:
[
{
"columns": [
{
"name": "programId",
"type": "String"
},
{
"name": "symbol",
"type": "String"
},
{
"name": "name",
"type": "String"
},
{
"name": "decimals",
"type": "UInt8"
}
],
"data": [
[
"111pZmnFrX5G9jidWUg1icALt8PxkRGt19nV9ywrTd",
"RPOW",
"RPOW",
6
],
[
"117wSs4gNY39i8q5AqCFozrzCEhDxvSa2Hi7vBbofaQ",
"emilio",
"emilio",
6
],
[
"11BMjvM2tzoP4Ww4G5TMTa8oR4kCSMjvQ74XXfXuHtx",
"ANSEM",
"The Black Bull",
6
],
[
"11FUarnYkUCkM4AXJvnmnnGzW2VBEDHrrNrBuZr7yBE",
"$FRC",
"Flamingo Revolution",
6
],
[
"11K8eZYt5KR282ZkK2c8bB4ZHFfqtbY6muqHMvLEASY",
"YEILDCASH",
"yeildcash",
6
],
[
"11T6GBCzs429acLCrBGk2FTsJd74mjiHeDkgCd4ryZh",
"W26",
"WORLD CUP 2026",
6
],
[
"11pys8LJLJoeMfhvBMbEFFkwEwj5B87G8k3gA6PEASY",
"VARSKO",
"Varsko Intelligent ",
6
],
[
"11shjygYRN8tVcXNGCFepSXBT9aVXwvXj97ySf1bory",
"NGG",
"NinjaGuild",
6
],
[
"1215hKyD1K8apJcpmndXyQDfR4UoqQtUtmfJJxGirXPX",
"BIRDS",
"Birds for some Reason",
9
],
[
"121UCZVRpK3DrLryx4eEE37YoiCJanyZt7hwgRPCBAGS",
"TAXFREE",
"Taxfree coin",
9
]
],
"rows": 10
}
]
Note: result collections are limited to 10 items in this example.
The response returns a columnar table: columns describes each field's name and type, and each inner array in data represents one token row in the same column order.
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/tokens"
);
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/tokens")
print(response.json())
asyncio.run(main())
Payment Flow
- Send a normal request to the endpoint (no API key needed)
- Server returns
402 Payment Requiredwith payment details - The x402 SDK automatically signs a payment authorization with your wallet
- The SDK resubmits the request with the signed payment
- 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