a tiny bitcoin node using rust-bitcoinkernel which is a wrapper around libbitcoinkernel.
run on regtest:
cargo run --bin btc-node -- --network regtest
there's also a CLI tool with 2 commands: getblockcount
and getblock
getblockcount
similar tobitcoin-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