Registry / crypto / bitcoincore-rpc

bitcoincore-rpc

JSON →
library0.19.0rscratesunverified

RPC client library for the Bitcoin Core JSON-RPC API.

# Cargo.toml [dependencies] bitcoincore-rpc = "0.19.0"
INSTALL
IMPORT
SIG · BITCOINCORE-RPC
B
bitcoincore-rpc
cryptorustv0.19.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.

Client
use bitcoincore_rpc::Client;

Connect to a Bitcoin Core node and query blockchain info.

use bitcoincore_rpc::{Client, Auth}; fn main() { let rpc = Client::new("http://localhost:8332", Auth::None).unwrap(); println!("{}", rpc.get_blockchain_info().unwrap().chain); }
Debug
Known issues
gotchaRequires a running Bitcoin Core node with RPC enabled.
fix
Start bitcoind with -server=1 and configure rpcuser/rpcpassword.
affects: >=0.1.0
Upgrade
Version history
0.19.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
30 hits · last 30 days
node
26
OpenAI (training)
1
Resources
bitcoincore-rpc — cargo add bitcoincore-rpc · libregistry