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.00000000,
		" 18JrwSxm327bSD8JXbjBkfo3XfgyVeGmyH": 0.00000000,
		"\"\"": 0.00000000,
		"05E083685A1097CE1EA9E91987AB9E94EAE33D8A130A248433": 0.00000000,
		"1": 0.00000000,
		"12": 0.00000000,
		"12\"'`--": 0.00000000,
		"12)": 0.00000000,
		"123123123": 0.00000000,
		"12mBz4ZH7xdLM2TPM2LKNn42xhKmJ4csTN": 0.00000000,
		"14RQbWPBvpBsPdqFWSVkQGrGw96DLaQb2w": 0.00000000,
		"14fjHpAWdkaPhi8GWndsBei76t6ZrGESzq": 0.00000000,
		"1BSVBfrgTNy7qduFvM8r3TZa3CGcF2vQSB": 0.00000000,
		"1D338tzP9cRnz4AVyzZ76yfvvUQVpJfznu": 0.00000000,
		"1DVEhVsBPPf7f3ozGqjzkf7Q896KVcik5m ": 0.00000000,
		"1Hz96kJKF2HLPGY15JWLB5m9qGNxvt8tHJ": 0.00000000,
		"1JYRN11qfT3DMDXBnPzLcYPzX6KJGP39qv": 0.00000000,
		"1KpLHyRMcsdyZSy4z7MgrLLY7tGfA2k9RZ": 0.00000000,
		"1MAWuCTwbi6mKLkn6B5NMVrd5QUADLQDqc": 0.00000000,
		"1Mz7153HMuxXTuR2R1t78mGSdzaAtNbBWX": 0.00000000,
		"1NJ7Qhf9oV6eL8ZQCoqLmTagpEwNDJUBcs": 0.00000000,
		"1PXwUQ4wkdhhLMDoQFKAUojEJF2aParqdo": 0.00000000,
		"2": 0.00000000,
		"3": 0.00000000,
		"3997ec296bdc4d7c521369c64d84ebb170cf9263ebc40d2b568e22059b02f0f5": 0.00000000,
		"39v2SctAiS6JeFhbrbiCBmwkxSaY4RkGPv": 0.00000000,
		"3DCzgE4RiMMF1NSLgrDUaxwL5WHzoHvteq": 0.00000000,
		"4ea0e24057028422c822cd70b5626e7a15f6f87bfcc7eea562396eb1bd909b7d": 0.00000000,
		"A7e5RpBX73b6S6HKK7zYQSFCbsE5Fh2FUgftt8gwHvgg": 0.00000000,
		"LajyQBeZaBA1NkZDeY8YT5RYYVRkXMvb2T": 0.00000000,
		"Xxxx": 0.00000000,
		"asd": 0.00000000,
		"bbb": 0.00000000,
		"bbbb": 0.00000000,
		"ddd": 0.00000000,
		"dzwigar": 0.00000000,
		"kampret": 0.00000000,
		"mateusz": 0.00000000,
		"move": 0.00000000,
		"mqbK2A8Db1TFaZoprY8eHq8Vbpc2JaPG1X": 0.00000000,
		"mvGNoZSb3Mg9drUVpK6CftCNA2ZhKx6ATv": 0.00000000,
		"pizza": 0.00000000,
		"rNZp3Cu3RpXwdXVjozSXc6VR9wNnLingpd": 0.00000000,
		"test": 0.00000000,
		"vova": 0.00000000,
		"vova1234": 0.00000000,
		"y2gmTzk2X3CjmP2fzMT1pITrt": 0.00000000,
		"y2gmTzk2X3CjmP2fzMT1pITrtrbWsf": 0.00000000,
		"ддд": 0.00000000,
		"цва": 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/