4

I'm wondering how to find the balance a wallet for a full node on a command-line only linux box. bitcoin-cli doesn't seem to help here, and I'm not sure what else to try.

1 Answer 1

3

There is a simple RPC call getbalance. So bitcoin-cli getbalance should give you the number.

4
  • When I try bitcoin-cli getbalance I get error: {"code":-32601,"message":"Method not found"}
    – erikvold
    Commented Apr 5, 2016 at 21:36
  • 1
    That means your bitcoind is compiled without wallet support. Commented Apr 5, 2016 at 22:40
  • how about how to get balance of another public address? Commented Oct 28, 2018 at 11:56
  • 2
    Bitcoin Core has no support for querying the balance of an address individually. You can add the addresses you care about to a wallet using importaddress or importmulti, and then query the wallet's balance after rescanning. Commented Oct 28, 2018 at 16:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.