A web based interface to the Bitcoin API JSON-RPC

Command: listaccounts

The listaccounts RPC lists accounts and their balances.

Parameter #1—the minimum number of confirmations a transaction must have
Parameter #2—whether to include watch-only addresses in results
Result—a list of accounts and their balances

The minimum number of confirmations an externally-generated transaction must have before it is counted towards the balance. Transactions generated by this node are counted immediately. Typically, externally-generated transactions are payments to this wallet and transactions generated by this node are payments to other wallets. Use 0 to count unconfirmed transactions. Default is 1.
If set to true, include watch-only addresses in details and calculations as if they were regular addresses belonging to the wallet. If set to false (the default), treat watch-only addresses as if they didn’t belong to this wallet.
{
	"result": {
		"": 0.00385000,
		"\"\"": 0.00000000,
		"000000000000000000000000000000000000000001fa4423fa272878f6785d4e": 0.00000000,
		"000a6b825daa1b89f8e100ed8eec6d79b592500f49": 0.00000000,
		"0fae0a8666f1a151fbb46638cf205c71800e3400": 0.00000000,
		"1510": 0.00000000,
		"188888ZKZutFfYHv4sxoxiMNfb8rinHsDu": 0.00000000,
		"18vo1ZVS5kN2SngCxGyEvi39JbjbJUgbf7": 0.00000000,
		"1HSqyCH5mF6jbRcySed5ds8hxLEiNDDevm": 0.00000000,
		"1Kr6QSydW9bFQG1mXiPNNu6WpJGmUa9i1g": 0.00000000,
		"1PSSGeFHDnKNxiEyFrD1wcEaHr9hrQDDWc": 0.00000000,
		"23": 0.00000000,
		"2a60c1e6f9de84e1dca837f640c42b5d33da566b412e9dcc81ccabce2a9fc7b6": 0.00000000,
		"32NFcoB96ANoPnqycLH9WUd94o7bwRyq66": 0.00000000,
		"34mdFM2iVkkgYHEXPnqtH4FZTodWbyxf7q": 0.00000000,
		"3FpF7pxYM9999213ik8teSmYc5uyFR1b6v": 0.00000000,
		"3LJAKgJXtEPDNTkNSj3BdtfNXiyp8Uf9ey": 0.00000000,
		"3NgejEdMVZcCUAffp2fRd8LTtRPjiaN1h6": 0.00000000,
		"536ffa992491508dca0354e52f32a3a7a679a53a": 0.00000000,
		"Account 2": 0.00000000,
		"Test": 0.00000000,
		"a721caa39233676ccd3dc0509d0b93a6bc55fb52": 0.00000000,
		"a88d623c7cabec37ed35600707f5d588894b339089a3c7aee819b026c4291c38": 0.00000000,
		"abc": 0.00000000,
		"anirudhs": 0.00000000,
		"bchtest:qzkr07vqzl2qszl9p8xar8h6hdjg4xep8c7sqc42ll": 0.00000000,
		"d5d016e1ba3a3a6a3502fb5cb112e2c56f15ed72be9dd3832408dff6c051f773": 0.00000000,
		"d5f69d71fdddd5f776734eb67b6ef5d5b7fa7796b7739e9eeb7ddbd36e9d739e1ce5ce9dd5e7387f7ef669ee5bf77d7d": 0.00000000,
		"df4b01d0c8cfe3a8610754c933e161bd160ff9b131e67c84fee5e2b1ffa78a24": 0.00000000,
		"hsthh": 0.00000000,
		"ruslandudka": 0.00000000,
		"test": 0.00000000,
		"��mmü\u000b\u0011l<FFo�\u001c�\u0017����x�Yv�H�ᏼ�ߩ�\u0001\u0006e\u0006\u00014 }�%�D\u0004/slush/": 0.00000000
	},
	"error": null,
	"id": null
}
listaccounts ( minconf include_watchonly)

DEPRECATED. Returns Object that has account names as keys, account balances as values.

Arguments:
1. minconf             (numeric, optional, default=1) Only include transactions with at least this many confirmations
2. include_watchonly   (bool, optional, default=false) Include balances in watch-only addresses (see 'importaddress')

Result:
{                      (json object where keys are account names, and values are numeric balances
  "account": x.xxx,  (numeric) The property name is the account name, and the value is the total balance for the account.
  ...
}

Examples:

List account balances where there at least 1 confirmation
> bitcoin-cli listaccounts 

List account balances including zero confirmation transactions
> bitcoin-cli listaccounts 0

List account balances for 6 or more confirmations
> bitcoin-cli listaccounts 6

As json rpc call
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listaccounts", "params": [6] }' -H 'content-type: text/plain;' http://127.0.0.1:8332/