bitcoind.app
CommandsGuidesContact ↗
Home/Wallet/getbalance
Wallet

getbalance

Returns the total available balance in the wallet.

Parameters

dummystringoptional
Remains for backward compatibility. Must be "*"
minconfnumberoptional
Only include txs confirmed at least this many times. Default: 0
include_watchonlybooleanoptional
Include watch-only addresses. Default: true for watch-only wallets
avoid_reusebooleanoptional
Do not include balance in dirty outputs. Default: true

Returns

numberAmount in BTC

Code Examples

curl --user myuser --data-binary '{"jsonrpc":"1.0","id":"1","method":"getbalance","params":[]}' -H 'content-type:text/plain;' http://127.0.0.1:8332/

Example Response

1.23456789
← Previous
dumpprivkey
Next →
getnewaddress

More Wallet Commands

abandontransactioncreatewalletdumpprivkeygetnewaddressgettransactiongetwalletinfo

bitcoind.app — Bitcoin Core RPC Reference

GuidesContact ↗