3 releases
Uses new Rust 2024
| new 0.1.3 | Feb 10, 2026 |
|---|---|
| 0.1.1 | Feb 9, 2026 |
| 0.1.0 | Feb 8, 2026 |
#1866 in Command line utilities
98KB
2K
SLoC
Contains (Zip file, 3KB) choco/bntui.0.1.2.nupkg
Terminal block explorer for Blocknet, a privacy-focused cryptocurrency.
Built with ratatui. Connects to a running Blocknet daemon via its REST API.
Views
Dashboard (1)
Chain stats, wallet balance, mempool sparklines with history, and mining controls with a plasma visualizer that reacts to hashrate. Shockwave animation on block discovery.
Grid (2)
Top-down block field showing the last 500 blocks. Each block is color-coded by transaction count (white = empty, green = busy). Selected block is pulled out and rendered as a spinning 3D wireframe cube whose rotation speed reflects how fast it was mined relative to the 5-minute target. Row gutter shows block heights for orientation.
Keybindings
| Key | Action |
|---|---|
1 |
Dashboard view |
2 |
Grid view |
j / k |
Navigate blocks (newer / older) |
J / K |
Jump one row (newer / older) |
m |
Toggle mining |
+ / - |
Adjust mining threads |
q |
Quit |
Requirements
- A running Blocknet node with the API enabled (default port 8332)
- API cookie file at
<blocknet-dir>/data/api.cookie(created by the daemon on startup)
Note: The daemon must be running before you launch bntui — it creates the cookie file on startup.
Install
Homebrew (macOS)
brew install obselate/tap/bntui
AUR (Arch Linux)
yay -S bntui
Chocolatey (Windows)
choco install bntui
Cargo (any platform)
cargo install bntui
From release binaries
Download the latest binary for your platform from Releases.
chmod +x bntui
./bntui /path/to/blocknet
From source
Requires Rust 1.85+.
git clone https://github.com/obselate/bntui.git
cd bntui
cargo build --release
./target/release/bntui /path/to/blocknet
Usage
If the Blocknet daemon is running, bntui will automatically find the data directory — no arguments needed:
# auto-detect (checks cwd, then platform default)
bntui
bntui searches for data/api.cookie in the following order:
- Explicit argument or
BLOCKNET_DIRenv var - Current directory — useful when running from the blocknet project directory
- Platform default:
- macOS:
~/Library/Application Support/Blocknet - Linux:
~/.blocknet - Windows:
%APPDATA%\Blocknet
- macOS:
$ bntui --help
Terminal block explorer for Blocknet privacy blockchain
Usage: bntui [OPTIONS] [BLOCKNET_DIR]
Arguments:
[BLOCKNET_DIR] Path to blocknet directory [auto-detected if omitted]
Options:
--host <HOST> API host to connect to [default: localhost]
--port <PORT> API port to connect to [default: 8332]
--cookie <COOKIE> Path to API cookie file (default: {blocknet_dir}/data/api.cookie)
-h, --help Print help
-V, --version Print version
# Or pass the directory explicitly
bntui /path/to/blocknet
# Or set the environment variable
export BLOCKNET_DIR=/path/to/blocknet
bntui
# Connect to a remote daemon
bntui --host 192.168.1.100 --port 8332 --cookie /path/to/api.cookie
Docker
If running Blocknet in Docker, make sure the data directory is bind-mounted:
volumes:
- ./data:/data
Then point bntui at the directory containing the data/ folder.
API Endpoints Used
| Endpoint | Method | Purpose |
|---|---|---|
/api/status |
GET | Chain height, peers, sync state |
/api/mempool |
GET | Mempool stats |
/api/wallet/balance |
GET | Wallet balance |
/api/mining |
GET | Mining status and hashrate |
/api/mining/start |
POST | Start mining |
/api/mining/stop |
POST | Stop mining |
/api/mining/threads |
POST | Set thread count |
/api/block/{height} |
GET | Block data by height |
All endpoints require Bearer token authentication via the cookie file.
License
MIT
Dependencies
~19–40MB
~584K SLoC