Expand description
Lightweight, ergonomic Solana JSON-RPC client for WebAssembly.
Wraps the Solana JSON-RPC API over HTTP and (optionally) PubSub WebSocket.
Returns the canonical types from solana_rpc_client_types.
WasmClient— HTTP RPC client.WasmPubsubClient— WebSocket PubSub client, gated behind thepubsubfeature (off by default).
§Example
use spume::WasmClient;
let client = WasmClient::new("https://api.mainnet-beta.solana.com");
let slot = client.get_slot(None).await?;Modules§
- provider
- pubsub_
provider pubsub
Structs§
- Wasm
Client - Solana JSON-RPC client over HTTP.
- Wasm
Pubsub Client pubsub - Solana JSON-RPC PubSub client over a single WebSocket connection.