Quickstart
This quickstart takes you from no account to your first live Solana event from the Anaxer API in about five minutes: get a key, make one REST call, open one stream.
1. Get an API key
Create a free account in the Anaxer console and open API Keys → Create key. The secret is shown once, so copy it somewhere safe. The free plan needs no card.
Keep the key on your server, in an environment variable such as ANAXER_API_KEY, and never ship it in browser JavaScript. Authentication
2. Your first REST call
curl "https://api.anaxer.com/v1/creations?limit=1" \
-H "Authorization: Bearer YOUR_KEY"import { connect } from "@anaxer/sdk";
const client = connect({ apiKey: process.env.ANAXER_API_KEY! });
const page = await client.creations({ limit: 1 });
console.log(page.data[0]);This asks for the most recent token launch, which confirms your key works. The key goes in a Bearer token or an x-api-key header. The response is a page of JSON:
{
"data": [
{
"type": "created",
"signature": "3Nk7pT2xQeB8mVdR4wLc9fJhY6zS1nGtK5uA3oXvW7q…",
"slot": 309812345,
"timestamp": 1751008864000,
"source": "pump_fun",
"mint": "pumpCmXqMfrsAkQ5r49WcJnRayYRqmXz6ae8H7H9Dfn",
"name": "Pump",
"symbol": "PUMP",
"mayhemMode": false
}
],
"next": "eyJ0IjoxNzUxMDA4ODY0MDAwLCJp… ",
"window": { "from": 1751000000000, "to": 1751008869000 }
}List endpoints return data, a next cursor and the window searched. Timestamps are Unix epoch milliseconds. Pagination
3. Your first stream
A stream pushes events to you as they happen, sub-350ms from chain confirmation: open one WebSocket and send a subscribe message.
With the TypeScript SDK
npm install @anaxer/sdkimport { connect } from "@anaxer/sdk";
const client = connect({ apiKey: process.env.ANAXER_API_KEY! });
// Opens the WebSocket on the first stream() call and keeps it alive.
client
.stream("creations", { excludeMayhem: true })
.on("data", (token) => {
console.log("new launch:", token.symbol, token.mint);
});Needs Node.js ≥ 20. The SDK handles auth, heartbeat and reconnecting.
From a terminal, no code
# One-off connection test — no code required
npm install -g wscat
wscat -c "wss://api.anaxer.com/v1/stream?apiKey=YOUR_KEY"
# On connect the server sends {"type":"connected",…} with your plan limits.
# Then send a subscribe message — filters is required, even when empty:
> {"type":"subscribe","id":"launches","channel":"creations","filters":{}}
# → {"v":1,"type":"subscribed","id":"launches","channel":"creations","filters":{},"ts":…}
# …then events stream back as versioned envelopes ({ v, channel, type, sub, ts, data }).Any WebSocket client works the same way. If a raw socket drops, reconnect with backoff, send your subscribe messages again, and backfill what you missed over REST. The SDKs do the first two for you. Gap recovery
Which API should I use?
| I want to… | Use | Why |
|---|---|---|
| React to events as they happen | WebSocket streams | Push delivery, sub-350ms |
| Look up or backfill on demand | REST API | Pull, paginated, 7 days of history |
| Build a long-running bot or backend | @anaxer/sdk | Typed, handles reconnect and heartbeat |
| Give an AI agent (Claude / Cursor) live data | @anaxer/mcp | Drop-in tools, no glue code |
Next steps
- StreamsAll five channels, the subscribe message, filters and limits.
- REST APIMetadata, prices, token and wallet trades, wallet transfers, launches and graduations.
- SDKsTypeScript and Python clients: streaming, REST, errors and types.
- MCP serverAnaxer inside Claude, Cursor and other MCP hosts.
No key yet? Create one free, no card required, and run the snippets above.
Start FreeLast updated · Changelog