Cambrian All Tokens API

By Cambrian Network base

GET /api/v1/evm/tokens

All Tokens

Overview

Returns a list of all ERC-20 tokens for a specified EVM chain, including their contract addresses, symbols, names, and decimal places. Results can be filtered by symbol or name and paginated using limit and offset.

Business Value

  • Token Discovery: Access a comprehensive catalog of verified tokens across EVM chains for integration purposes
  • Contract Verification: Get validated contract addresses to avoid interaction with malicious or fake tokens
  • Metadata Standardization: Retrieve standardized token information including symbols, names, and decimal precision
  • Chain Compatibility: Support for multiple EVM-compatible networks through a single endpoint
  • Application Development: Essential data for wallets, DEXs, and portfolio tracking applications

Endpoint Details

URL:

https://api.cambrian.org/evm/tokens

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

Query Parameters

Parameter Type Required Default Description
chain_id integer No 8453 EVM chain ID. Enum: 1, 8453, 42161, 4663, 56
filter string No - Search symbol or name of the token
limit integer No 100 Limit the number of results (min 1, max 10000)
offset integer No 0 Offset the results, allows you to skip a number of rows before starting to return rows (min 0, max 100000000)

Response Field Descriptions

Response Field Type Description
chainId UInt16 EVM chain ID the token belongs to
tokenAddress String Contract address of the ERC-20 token
tokenSymbol String Token symbol
tokenName String Token name
tokenDecimals UInt8 Number of decimal places used by the token
isStable UInt8 Flag indicating whether the token is a stablecoin (1) or not (0)

Examples

1. List Tokens on Base

Retrieves a list of ERC-20 tokens on the Base chain, limited to 10 results.

curl -X GET "https://api.cambrian.org/evm/tokens?limit=10" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"

Response:

[
  {
    "columns": [
      {
        "name": "chainId",
        "type": "UInt16"
      },
      {
        "name": "tokenAddress",
        "type": "String"
      },
      {
        "name": "tokenSymbol",
        "type": "String"
      },
      {
        "name": "tokenName",
        "type": "String"
      },
      {
        "name": "tokenDecimals",
        "type": "UInt8"
      },
      {
        "name": "isStable",
        "type": "UInt8"
      }
    ],
    "data": [
      [
        8453,
        "0x307a0926d788d9d43ca6a70d28bd617abaa3bd9d",
        "AAA",
        "AAA",
        18,
        0
      ],
      [
        8453,
        "0xa18bfe67e90afb6146934eda5bab47e039a240a4",
        "AAA",
        "AA",
        18,
        0
      ],
      [
        8453,
        "0xa7477167c142e2289cf057cbf8f9198632e98cd3",
        "AAA",
        "AAA",
        18,
        0
      ],
      [
        8453,
        "0xb6519dda5826bc69dcc1ec381cc6a955f6183438",
        "AAA",
        "ANation",
        18,
        0
      ],
      [
        8453,
        "0x53b83bb2e34b6b7331a8e05f6a0ebbee3145be9c",
        "AAA",
        "AAA",
        18,
        0
      ],
      [
        8453,
        "0xabc1e9a532e22fd41f5c22974f50e3b141b9f0ef",
        "AAA",
        "Arcadia Finance",
        18,
        0
      ],
      [
        8453,
        "0x6f511fe8ead9dad1d856171bbd8af7d30f8baf8f",
        "AAA",
        "Aiagent.app",
        18,
        0
      ],
      [
        8453,
        "0x03274961d473fa0bba49768d47dc7cc3fcca2969",
        "AAA",
        "TRIPLE A",
        18,
        0
      ],
      [
        8453,
        "0x1e95c00b02451de72c319f2fe1734c5f4c4d1f94",
        "AAA",
        "AAA BASE",
        18,
        0
      ],
      [
        8453,
        "0x0af265e2ada88a3936a409c5759e9da1fe916d8a",
        "AAA",
        "AAA",
        18,
        0
      ]
    ],
    "rows": 10
  }
]

Result collections are limited to 10 items. The example above returns 10 ERC-20 tokens on Base (chain ID 8453). All ten share the "AAA" symbol but have distinct contract addresses, names, and metadata. This shows how tokenSymbol collisions can occur across different token names on the same chain.

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/evm/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/evm/tokens")
        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