Registry / networking / solana-rpc-client

solana-rpc-client

JSON →
library4.0.0rscratesunverified

Solana RPC Client

# Cargo.toml [dependencies] solana-rpc-client = "4.0.0"
INSTALL
IMPORT
SIG · SOLANA-RPC-CLIENT
S
solana-rpc-client
networkingrustv4.0.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_rpc_client::RpcClient;

Connect to Solana RPC and get node version

use solana_rpc_client::RpcClient; fn main() { let url = "https://api.mainnet-beta.solana.com".to_string(); let client = RpcClient::new(url); let version = client.get_version().unwrap(); println!("Solana version: {:?}", version); }
Debug
Known issues
gotchaRequires network access and valid RPC URL
fix
Ensure you have a working Solana RPC endpoint
affects: >=4.0.0
Upgrade
Version history
4.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
12
Amazon
1
OpenAI (training)
1
Resources
solana-rpc-client — cargo add solana-rpc-client · libregistry