steps:
- npm install (-g)
bclient
which providesbwallet-cli
- make sure your
~/.bcoin/wallet.conf
containsnetwork: 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 balance
should 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