#standard #rpc #api #solana #helius #rpc-client #wrapping

helius-rust-client

A rust client wrapping Helius APIs and the standard Solana RPC client

1 unstable release

0.1.0 Apr 26, 2023

#41 in #wrapping

MIT license

50KB
1.5K SLoC

Helius Rust Client

Rust client for Helius's Solana APIs and standard Solana RPC calls. Read more about Helius's APIs here.

Available on crates.io.

Install

Add the crate to your Cargo.toml.

helius-rust-client = "0.1.0"

Examples

   
    let client = HeliusClient::new(
        "your-api-key".to_string(),
        solana_sdk::genesis_config::ClusterType::MainnetBeta,
    );
    let token_balances = client
        .get_token_balances("YourAddress".to_string())
        .await.unwrap();

    println!("token balances: {:?}", token_balances);
    

More examples can be found in the tests directory (in the form of tests). Provide an API key and addresses and run them with -- --nocapture in order to see the printed outputs.

Dependencies

~73MB
~1.5M SLoC