All Projects

Hotbuns

Bitcoin full node in TypeScript on Bun

TypeScript

About

A complete Bitcoin full node in TypeScript running on the Bun runtime. Features parallel signature verification, HD wallet support, and Bitcoin Core-compatible RPC.

Completion 100%

Mainnet sync

Initial Block Download
61.6%
Block height
582,000
Sync rate
~6,000 blk/hr
ETA to tip
~60 hours
Test vectors
1222/1222

Tech stack

Language
TypeScript
Storage
LevelDB
Crypto
libsecp256k1 (C FFI)
Lines of code
55,107

Quick start

terminal
$ git clone https://github.com/hashhog/hotbuns.git
$ cd hotbuns
$ bun install
$ bun run src/index.ts --network=mainnet

Features

Wire serialization
Cryptographic primitives
Script interpreter
P2P networking
Block validation
UTXO set management
Header sync
Block sync (IBD)
Mempool
RPC server
Wallet
Mining/block templates
Script test vectors (1222/1222)
Testnet4 sync
Mainnet sync
BIP324 v2 transport