Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 604 Bytes

README.md

File metadata and controls

25 lines (16 loc) · 604 Bytes

bitcoin-node

a tiny bitcoin node using rust-bitcoinkernel which is a wrapper around libbitcoinkernel.

Usage

run on regtest:

cargo run --bin btc-node -- --network regtest

there's also a CLI tool with 2 commands: getblockcount and getblock

  • getblockcount similar to bitcoin-cli getblockcount returns the height of current active chain
cargo run --bin bcli getblockcount
  • getblock returns a block at a certain height:
cargo run --bin bcli getblock 21