- Package:
helius-sdk(npm / pnpm / yarn) - Version: 2.x (uses
@solana/kit, not@solana/web3.js) - Runtime: Any JavaScript runtime — browsers, Deno, Bun, edge runtimes (Cloudflare Workers, Vercel Edge), Node.js 20+
- TypeScript: 5.8+ (full type definitions included)
- License: ISC
Installation
Quick Start
Client Options
Namespaces
All methods are accessed through thehelius client. DAS API methods and standard Solana RPC methods are available directly on helius.*. Other functionality is organized into namespaces:
| Namespace | Access | Purpose |
|---|---|---|
| DAS API | helius.getAsset(), helius.getAssetsByOwner(), etc. | Query NFTs, tokens, compressed assets |
| RPC V2 | helius.getTransactionsForAddress(), helius.getProgramAccountsV2() | Enhanced RPC with pagination and filters |
| Transactions | helius.tx.* | Smart transactions and Helius Sender |
| Enhanced | helius.enhanced.* | Parse transactions into human-readable format |
| Webhooks | helius.webhooks.* | Create and manage webhook subscriptions |
| WebSockets | helius.ws.* | Real-time blockchain data streams |
| Staking | helius.stake.* | Stake SOL to Helius validator |
| ZK Compression | helius.zk.* | Compressed accounts and proofs |
| Wallet API | helius.wallet.* | Balances, history, identity lookups |
| Standard RPC | helius.getBalance(), helius.getSlot(), etc. | All standard Solana RPC methods via proxy |
| Raw RPC | helius.raw | Direct access to the underlying @solana/kit Rpc client |
| Auth | import { makeAuthClient } from "helius-sdk/auth/client" | Agent signup and API key management (standalone import) |
Programmatic Signup (Auth Module)
The auth module is a standalone import — it is not on the mainHeliusClient. Use it for programmatic agent signup flows.
Deep Dives
Best Practices
Recommended patterns, pagination, common mistakes, and error handling
API Reference
Full method list for every namespace