bitcoind.app
CommandsGuidesContact ↗
Home/Wallet/getbalances
Wallet

getbalances

Returns an object with all balances in BTC, broken down by trusted, untrusted pending, and immature.

Returns

objectDetailed balance breakdown

Code Examples

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

Example Response

{
  "mine": {
    "trusted": 1.23456789,
    "untrusted_pending": 0.00000000,
    "immature": 0.00000000
  }
}
← Previous
getaddressinfo
Next →
getrawchangeaddress

More Wallet Commands

abandontransactioncreatewalletdumpprivkeygetbalancegetnewaddressgettransaction

bitcoind.app — Bitcoin Core RPC Reference

GuidesContact ↗