Skip to content

Latest commit

 

History

History
50 lines (35 loc) · 1.13 KB

README.md

File metadata and controls

50 lines (35 loc) · 1.13 KB

btcw

btcw is a bitcoin testnet wallet. Why another bitcoin wallet? So that you could send some coins to it and lose them all! Kidding... This was purely for educational purposes for me to learn more about bitcoin and see how I would go about building one.

It only has the most basic functionality like generating addresses, detect receiving transactions to those addresses, building and signing transactions. It implements BIP-44 hierarchical deterministic wallets.

requirements

build

  • have a bitcoin node running in testnet (or regtest/simnet)

  • go build .

  • create wallet

./btcw -create
  • start wallet (by default it will try to connect to a btcd node. If running with bitcoin core, add -node=core when starting wallet)
./btcw -rpcuser={yourrpcuser} -rpcpass={yourpcpassword}

usage

  • cd cmd/btcw-cli

  • go build .

  • get new address

./btcw-cli getnewaddress
  • get balance
./btcw-cli getbalance
  • send btc
./btcw-cli sendtoaddress "{address}" amount (in btc)