CRAFTBIT


Bitcoin Swiss Army Knife 🪛 🌕 🔧
Abstract
This software is a lightweight Command Line Interface (CLI) containing multiple utilities designed for interacting with the Bitcoin ecosystem.
Most of these utilities either serve as wrappers for btcd libraries or make calls to the mempool.space REST APIs.
[!WARNING]
As certain functions leverage the APIs of the public instance of mempool.space, this tool may be suboptimal from a privacy perspective and inadvertently expose personally identifiable information (PII) such as transactions or addresses.
Why CraftBit ?
This tool serves multiple purposes:
- It consolidates various utilities for interacting with the Bitcoin ecosystem into a single executable.
- It provides reusable atomic packages and functions, organized under the
pkg
folder.
- It aims to serve as an educational aid for individuals new to the Bitcoin world.
Supported Features
Following are some of the tool's supported features:
- Decode raw transaction
- Generate hierarchical deterministic private key
- Generate P2PKH address from hd private key
- Retrieve current BTC price in multiple currencies
- Retrieve latest block heigh in the blockchain
- Retrieve current recommended fees
- Retrieve Lightning networ statistics
- Retrieve Lightning network top nodes
- Retrieve address transaction history
How to install
Homebrew
You can install craftib via homebrew with the following command:
brew tap stackzoo/craftbit https://github.com/stackzoo/craftbit && \
brew install craftbit
Releases
Go to the release page and download the binary for your OS.
Usage
