How to use Chainmetric
Get a key, fetch any document over HTTP, then follow the same document as a live stream. Every endpoint returns the same schema on every chain.
Before you start
Everything is plain HTTP with JSON answers. There is no GraphQL and no SDK to install; any HTTP client works. Each route is described in the OpenAPI spec, and AI agents can use the same data through the MCP server.
| Base URL | [BASE_URL] |
| Authentication | Authorization: Bearer [API_KEY] on every request |
| Format | JSON over HTTP; live streams over Server-Sent Events or WebSocket |
| OpenAPI spec | [OPENAPI_URL] |
| Getting a key | Get early access and we send one with your plan |
The request cycle
Every document works the same way: fetch a snapshot, read its sequence number, then subscribe from that number. Live events have the same schema as the HTTP answer, so the same parsing code handles both.
GET [BASE_URL]/v1/trades?chain=base&token=[TOKEN]
WSS [BASE_URL]/v1/streams/trades?chain=base&token=[TOKEN]&from=[SEQ]
Each record carries a commitment level — processed, confirmed or finalized — so you decide how settled the data you show has to be. After a disconnect, resume from the last sequence number you processed and nothing is missed.
Endpoints
One document per question. Every document can be fetched over HTTP and followed as a live stream. Paths below are illustrative until the OpenAPI spec ships; each one is described in full on its product page.
| Document | Route | What it returns |
|---|---|---|
| Token data | GET /v1/tokens/{chain}/{address} | Price, OHLCV, pools, liquidity and supply for one token |
| Trades | GET /v1/trades?chain=&token= | Trade history for a token, pool or wallet |
| Launches | GET /v1/launches?chain= | New tokens with their full lifecycle state |
| Token safety | GET /v1/safety/{chain}/{address} | Honeypot simulation, taxes, contract flags, dev history |
| Wallets and PnL | GET /v1/wallets/{chain}/{address} | Holdings, trade history and realized PnL |
| Wallet labels | GET /v1/wallets/{chain}/{address}/labels | Labels with the published rule each one comes from |
| Funding graph | GET /v1/wallets/{chain}/{address}/funding | Funding trace up to 10 hops and 500 wallets |
| Live streams | SSE/WSS /v1/streams/{document} | Live events for any document, resumable with from= |
| MCP server | [MCP_URL] | The same documents as tools for AI agents |
Streams and resuming
Server-Sent Events is one HTTP request and works everywhere, including serverless platforms; WebSocket carries the same events with lower overhead for long-lived connections. Pick either — the event schema is identical.
Every event carries a sequence number. Store the last one you processed; after a drop, reconnect with from= that number and the stream replays what you missed before going live again. There is no separate backfill API to reconcile.
Commitment levels
Each record arrives processed at the chain head and is upgraded to confirmed and finalized as it settles. If the chain reorganizes, a reverted trade leaves history and live streams together, and the stream tells you so. How this works is covered on Data quality.
Limits and errors
Rate limits follow your plan — [RATE] requests per second on paid plans, with usage counted in one unit across requests and streams. See Pricing for the numbers. Errors are JSON with a stable shape:
{ "error": { "code": "rate_limited", "message": "…", "retry_after": 2 } }On 429, wait retry_after seconds and try again. Open streams are not counted against the request rate.
Build on Chainmetric.
Live blockchain data and wallet intelligence on EVM chains and Solana, with one schema.