Wallet Operations

There are several ways to interact with the default wallet created inside your local test node.

Show Wallet Balance

bitcoin-cli -datadir=$BITCOIN_HOME/data getbalance

Create new Receiving Address

bitcoin-cli -datadir=$BITCOIN_HOME/data getnewaddress

Send coins to different Address

Send 10 bitcoins to a address defined by the environment variable $RECIPIENT_ADDRESS

export RECIPIENT_ADDRESS=<paste some address here>
bitcoin-cli -datadir=$BITCOIN_HOME/data sendtoaddress $NEW_ADDRESS 10.00