Skip to main content
By the end of this guide you will have:
  • An API key (or OAuth token)
  • A working call against the ChainStream REST API
  • A working call against the ChainStream SDK, CLI and MCP Server
  • A clear pointer to whichever surface — REST, GraphQL, WebSocket, Kafka, SDK, CLI, MCP — best fits your workload
Estimated time: 5 minutes.

Prerequisites

A ChainStream account. Sign up here if you do not have one yet.

1. Get your API key

  1. Open the ChainStream Dashboard.
  2. Go to Applications.
  3. Click Create New App.
  4. Copy the generated API Key (it starts with cs_live_…).
An API key is the fastest way to authenticate. For machine-to-machine scenarios use the OAuth 2.0 client-credentials flow described in API Keys & OAuth.

2. Make your first request

This example fetches metadata for Wrapped SOL on Solana. Pick the interface that matches how you will integrate.
curl "https://api.chainstream.io/v2/token/solana/So11111111111111111111111111111111111111112/metadata" \
  -H "X-API-KEY: your_api_key"

Response

{
  "chain": "solana",
  "address": "So11111111111111111111111111111111111111112",
  "name": "Wrapped SOL",
  "symbol": "SOL",
  "decimals": 9,
  "imageUrl": "https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/So11111111111111111111111111111111111111112/logo.png",
  "tokenCreatedAt": 1710417600000
}
FieldTypeDescription
chainstringBlockchain identifier, lowercase.
addressstringToken contract address.
namestringHuman-readable token name.
symbolstringTicker symbol.
decimalsintegerToken decimals.
imageUrlstringCanonical logo URL (may be null).
tokenCreatedAtintegerCreation timestamp (ms).

3. Pick the right access method

You just made a single request/response call. Real integrations usually need more than that.

REST API

On-demand lookups — tokens, wallets, pools, trades, compliance.

GraphQL

Flexible analytical queries over the full chain-data cube.

WebSocket

Sub-second pushes for live UIs and browser apps.

Kafka Streams

Exactly-once delivery into backends, indexers and trading engines.

SDKs

TypeScript, Python, Go, Rust — typed clients with auth built in.

CLI

Scripting, CI/CD and pay-per-call access for AI agents.

Troubleshooting

  • Confirm X-API-KEY or Authorization: Bearer … header is present and spelt correctly.
  • Regenerate a key if yours was rotated.
  • For OAuth, check the token hasn’t expired (default TTL is 1 hour).
You hit your plan’s rate limit. Free plans start at 10 req/s; upgrade or back off exponentially. See Plans & Units.
Use the chain identifier in the URL: solana, ethereum, bsc, base, polygon, arbitrum, optimism, avalanche, zksync, tron. Full list in Supported Chains.

Next steps

Browse the data catalog

Every dataset we publish, with coverage and refresh rates.

Start a real-time stream

Subscribe to live trades, prices, transfers and pool events.

Run compliance checks

KYT and KYA on transfers, withdrawals and counterparties.

Build an AI agent

Connect Claude, Cursor or ChatGPT via MCP + Agent Skills.