Registry / networking / anchor-client

anchor-client

JSON →
library1.0.2rscratesunverified

An RPC client to interact with Anchor programs on Solana.

# Cargo.toml [dependencies] anchor-client = "1.0.2"
INSTALL
IMPORT
SIG · ANCHOR-CLIENT
A
anchor-client
networkingrustv1.0.2
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.

Client
use anchor_client::Client;

Creates a new Anchor RPC client for Solana.

use anchor_client::Client; fn main() { let _client = Client::new("https://api.mainnet-beta.solana.com".parse().unwrap()); println!("Anchor client created"); }
Debug
Known issues
gotchaRequires a Solana RPC endpoint and proper keypair setup for transactions.
fix
Ensure you have a valid RPC URL and keypair file for signing.
affects: >= 0.0.0
Upgrade
Version history
1.0.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
29 hits · last 30 days
node
24
OpenAI (training)
1
Resources
anchor-client — cargo add anchor-client · libregistry