Skip to content

elnosh/bitcoin-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

a tiny bitcoin node using libbitcoinkernel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages