#bitcoin #kit #research #data #command #brk #interact

bin+lib brk_cli

A command line interface to interact with the Bitcoin Research Kit

8 releases

new 0.0.8 Mar 6, 2025
0.0.7 Mar 5, 2025
0.0.2 Feb 27, 2025

#178 in Magic Beans

Download history 190/week @ 2025-02-22 546/week @ 2025-03-01

736 downloads per month
Used in brk

MIT license

265KB
6K SLoC

BRK Cli

Setup

Hardware

Minimum

To be determined

Software

  • Unix based operating system (Mac OS or Linux)
    • Ubuntu users need to install open-ssl via sudo apt install libssl-dev pkg-config
  • Bitcoin
    • Example: bitcoind -datadir="$HOME/.bitcoin" -blocksonly
  • Rust
    • Install: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
    • Update: rustup update

Install

cargo install brk_cli

If it's your first time running brk, it will need several information such as:

  • --bitcoindir PATH: path to bitcoin core data directory, ???/bitcoin
  • --outputdir PATH: path to various outputs, if you have enough space on your main disk ~/.brk is fine

Everything will be saved at ~/.brk/config.toml, which will allow you to simply run brk run next time

If you need more options please run brk -h to see what parameters are available.

Here's an example

brk run --bitcoindir=~/Developer/bitcoin --outputdir=~/.brk

Then the easiest to let others access your server is to use cloudflared which will also cache requests. For more information go to: https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/

Update

cargo install brk_cli

or

cargo install cargo-update
cargo install-update -a

Dependencies

~62MB
~1M SLoC