solana-client-wasm 1.11.0-beta

Solana non-blocking WASM RPC client.
docs.rs failed to build solana-client-wasm-1.11.0-beta
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: solana-client-wasm-1.18.0

Solana WASM Client

Crates.io License

Non-blocking implementation of WASM compatible Solana Client.

Usage

You can use solana-client non-blocking API.

solana-sdk is exported from the lib so you don't need to add it to your dependencies.

Example

use solana_client_wasm::{
    solana_sdk::signature::{Keypair, Signer},
    WasmClient,
};

// Create client
let client = WasmClient::new("https://api.devnet.solana.com");

// Get a random pubkey
let pubkey = Keypair::new().pubkey();

// Get balance
let balance = client.get_balance(&pubkey).await?; // in lamports
log::info!("Balance is {balance}"); // 0