wasm_client_solana
A wasm compatible solana rpc and pubsub client.
Installation
To install you can use the following command:
Or directly add the following to your Cargo.toml
:
[]
= "0.1" # replace with the latest version
Features
This crate provides the following features:
js
: Enables the use of thewasm-bindgen
crate for thejs
target. This is useful for using the crate in a browser environment.ssr
: Enables the use of thereqwest
andtokio
crates for thessr
target. This is useful for using the crate in a server or non-browser environment.zstd
: Enables the use of thezstd
as an encoding format and automatically activates thessr
target.
Usage
The SolanaRpcClient
provides a wasm compatible client for the solana rpc and pubsub methods.
use sol_to_lamports;
use pubkey;
use ClientResult;
use DEVNET;
use SolanaRpcClient;
async