What problem does it solve?
Bitcoin L1 operations — check balances, estimate fees, list UTXOs, transfer BTC, and classify UTXOs as cardinal (safe to spend), ordinal (inscriptions), or rune (rune tokens). Data sourced from mempool.space and the Unisat API.
Core Features & Use Cases
- Balance: check total, confirmed, and unconfirmed BTC balances for a address or wallet.
- Fees: fetch current fee estimates to guide transaction timing.
- UTXOs & Inscriptions: list cardinal UTXOs (safe to spend), ordinal UTXOs (with inscriptions), and rune UTXOs.
- Transfer: send BTC using cardinal UTXOs by default; option to include ordinals if needed (with risk).
- Inscriptions & Rune: query inscriptions and rune-related UTXOs via Unisat API.
Quick Start
Run bun run btc/btc.ts balance to check the balance for your active Bitcoin address.