Available SDKs
Quick Install
Initialization
Both clients read your API key from an environment variable. Never hardcode your key directly in source code.- JavaScript / TypeScript
- Python
The JavaScript SDK ships with full TypeScript type definitions bundled in the package — no need to install a separate
@types/surchi package. You get complete autocompletion and type safety out of the box.Available Modules
Every client instance exposes four top-level modules. Click through to the relevant SDK guide for complete method signatures and examples.Tokens
Query token metadata, real-time prices, market cap, risk scores, and holder distributions across all supported networks.
Wallets
Analyze wallet behavior, calculate realized and unrealized PnL, inspect portfolio holdings, and track trading history.
Contracts
Run AI-powered smart contract audits that detect honeypots, rug-pull vectors, ownership risks, and hidden mint authorities.
Liquidity
Discover optimal swap routes, compare DEX prices, and calculate expected output amounts with configurable slippage tolerance.
Error Handling
The SDK surfaces distinct error classes so you can handle rate limits, missing resources, and general API errors separately.- JavaScript / TypeScript
- Python