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 93%

Tech stack

Language
TypeScript
Storage
LevelDB
Crypto
libsecp256k1 (C FFI)
Lines of code
90,970

Quick start

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

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