steps:
- npm install (-g)
bclientwhich providesbwallet-cli - make sure your
~/.bcoin/wallet.confcontainsnetwork: testnet - run an spv node on btc testnet (
bcoin --network testnet --spv, or you could spawn one programmatically) - wait until it’s fully synced
- get the receive address of the “default” account (
bwallet-cli account get default) - send some btc testnet from a faucet to that address
bwallet-cli balanceshould immediately show some unconfirmed amount- wait until the tx gets 1 conf, now the amount that was previously unconfirmed should show both as confirmed and unconfirmed