Simple command-line interface written in Rust for managing Bitcoin Core (bitcoind
) in regtest mode and interfacing with its JSON-RPC API.
This tool helps developers interact with a local Bitcoin node easily—fetching block hashes, inspecting block stats, and exploring regtest mode with both scripted and interactive modes.
- Starts and stops a local
bitcoind
instance in regtest mode - Fetch latest, previous, and next block hashes
- View basic block statistics via
getblockstats
- Interactive CLI mode and command-line argument support
- Built in Rust using
clap
andbitcoincore-rpc
crates - more Features are being added daily.
- Rust installed (
cargo
andrustc
) - Bitcoin Core installed (
bitcoind
,bitcoin-cli
) - Optional: cargo-watch for development
git clone https://github.com/yourusername/bitcoin-cli-rust.git
cd bitcoin-cli-rust
cargo build --release