I have changed getbalance to the following: Code: balanceAll=`./dcrctl --wallet getbalance 'default' 0 | grep total | awk {'print $2'}` balanceLocked=`./dcrctl --wallet getbalance 'default' 0 | grep locked | awk {'print $2'}` balanceSpendable=`./dcrctl --wallet getbalance 'default' 0 | grep spendable | awk {'print $2'}`