Skip to content

Bitcoin Swiss Army Knife πŸͺ› πŸŒ• πŸ”§

License

Notifications You must be signed in to change notification settings

stackzoo/craftbit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

58 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

CRAFTBIT

CI Go Report Card
Latest Release License: MIT


Bitcoin Swiss Army Knife πŸͺ› πŸŒ• πŸ”§

Abstract

This software is a lightweight, multi-platform 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:

  1. It consolidates various utilities for interacting with the Bitcoin ecosystem into a single executable.
  2. It provides reusable atomic packages and functions, organized under the pkg folder.
  3. 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:

  1. Decode raw transaction
  2. Generate hierarchical deterministic private key
  3. Generate P2PKH address from hd private key
  4. Retrieve current BTC price in multiple currencies
  5. Retrieve latest block heigh in the blockchain
  6. Retrieve current recommended fees
  7. Retrieve Lightning networ statistics
  8. Retrieve Lightning network top nodes
  9. 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.

How to update

Homebrew

If you installed craftbit via homebrew, you can update to the latest version with the following command:

brew update && brew upgrade craftbit

Releases

Go to the release page and download the latest binary for your OS.

Usage

usage