Skip to main content
The Helius Rust SDK provides async Rust bindings for all Helius APIs, ideal for high-performance agent workloads.
  • Crate: helius (crates.io)
  • Version: 1.x (uses solana-client 3.0, solana-sdk 3.0)
  • Runtime: Async (tokio 1.x)
  • Rust: 1.85+ (edition 2021)
  • HTTP Client: reqwest
  • License: MIT

Installation

The crate defaults to native-tls. For pure-Rust TLS (useful when OpenSSL is unavailable), use:

Quick Start

Client Constructors

Helius::new — Basic sync client

Simplest constructor. No .await needed. Provides RPC methods, webhooks, Enhanced Transactions, smart transactions, and Wallet API. No async Solana client or WebSocket support.
Recommended for production. Includes async Solana RPC client and Enhanced WebSocket streaming. Requires .await because it establishes a WebSocket connection.

Helius::new_with_url — Custom RPC endpoint

For dedicated RPC nodes, proxies, or local development. No API key required.

HeliusBuilder — Advanced configuration

HeliusFactory — Multi-cluster

Accessing embedded Solana clients

Deep Dives

Best Practices

Recommended patterns, pagination, common mistakes, and error handling

API Reference

Full method list for every category

Resources

GitHub Repository

Source code, examples, and issue tracking

docs.rs

Full API documentation on docs.rs

Code Examples

Working examples for every feature organized by category

Migration Guide (0.x to 1.0)

Upgrade from solana-sdk 1.x to 3.0