Languages
TypeScript
@chainstream-io/sdk — first-class support for browser and Node.Python
chainstream — async-first client, friendly for notebooks and bots.Go
github.com/chainstream-io/chainstream-go — idiomatic Go.Rust
chainstream crate — for latency-critical consumers.Install
First call — TypeScript
Common patterns
- REST —
cs.token.*,cs.wallet.*,cs.trade.*,cs.ranking.*,cs.dex.*… - WebSocket —
cs.stream.subscribeTokenTrade({ chain, tokenAddress, callback })(and parallel methods for candles, stats, holders, wallets, rankings, pools) - GraphQL —
cs.gql(query, variables)returns a fully typed result via codegen - CLI bridge —
cs.cli("market", "trending", { chain: "sol", duration: "24h" })runs the same logic aschainstream market trending --chain sol --duration 24h
When to use
- Integrating into an application — almost always the right default
- When you want types, retries, error mapping and pagination handled for you
- When you want to swap REST ↔ WebSocket for the same resource without rewriting
curl + REST is faster (or CLI).
Next
SDK catalog
Per-language guides and release notes.
Reference
Underlying REST / GraphQL / WebSocket surfaces.

