#brk #kit #bitcoin #on-chain #cryptocurrency #connection #cloudflare #dataset #brk-cli

bin+lib brk_cli

A command line interface to interact with the full Bitcoin Research Kit

26 releases

Uses new Rust 2024

new 0.0.27 Apr 18, 2025
0.0.26 Apr 18, 2025
0.0.11 Mar 31, 2025
0.0.2 Feb 27, 2025

#836 in Magic Beans

Download history 169/week @ 2025-02-21 518/week @ 2025-02-28 181/week @ 2025-03-07 179/week @ 2025-03-14 80/week @ 2025-03-21 229/week @ 2025-03-28 1018/week @ 2025-04-04 324/week @ 2025-04-11

1,705 downloads per month
Used in brk

MIT license

490KB
13K SLoC

BRK Cli

GitHub Repo stars kibo.money License Version Documentation Size Dependency status Discord Nostr Bluesky X

A command line interface to interact with the full Bitcoin Research Kit. It's built on top of every other create and gives the possility to use BRK using the terminal instead of Rust.

It has 2 commandes for now (other than help and version) which are run and query. The former is used to run the processing (indexer + computer) and/or the server. The latter uses brk_query as its backend just like to server to be able to get datasets via the terminal instead of the API. Both commands are very costumizable by having all the parameters of their Rust counterparts (run, query).

Requirements

Hardware

Minimum

To be determined

Software

  • Bitcoin
  • Rust
  • Unix based operating system (Mac OS or Linux)
    • Ubuntu users need to install open-ssl via sudo apt install libssl-dev pkg-config

Download

Binaries

You can find a pre-built binary for your operating system on the releases page (link).

Cargo

# Install
cargo install brk # or `cargo install brk_cli`, the result is the same

# Update
cargo install brk # or `cargo install-update -a` if you have `cargo-update` installed

Source

git clone https://github.com/bitcoinresearchkit/brk.git
cd brk/crates/brk
cargo run -r

Usage

Run brk -h to view each available command and their respective description.

-h works also for commands, which mean that brk run -h will explain all the parameters of brk run for example.

Every parameter set for brk run will be saved at ~/.brk/config.toml, which will allow you to simply run brk run next time.

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/

Dependencies

~62MB
~1M SLoC