Registry / networking / solana-client

solana-client

JSON →
library2.2.0rscratesunverified

Solana Client for interacting with the Solana blockchain.

# Cargo.toml [dependencies] solana-client = "2.2.0"
INSTALL
IMPORT
SIG · SOLANA-CLIENT
S
solana-client
networkingrustv2.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

RpcClient
✓ use solana_client::rpc_client::RpcClient;

Connect to Solana mainnet and get version.

use solana_client::rpc_client::RpcClient; fn main() { let client = RpcClient::new("https://api.mainnet-beta.solana.com".to_string()); println!("{:?}", client.get_version()); }
Debug
Known issues
gotchaRequires async runtime (tokio) for some operations.
fix
Add tokio as a dependency and use #[tokio::main].
affects: >=1.0.0
Upgrade
Version history
2.2.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
19 hits · last 30 days
node
18
Resources
solana-client — cargo add solana-client · libregistry