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,
		\"\\u0000\": 0.00000000,
		\"\\\"\":0.00000000,\"\\\"\\\"\":0.00000000,\"\\\"+response.write([
			100,
			000*100,
			000)+\\\"\":0.00000000,\"\\\";print(chr(122).chr(97).chr(112).chr(95).chr(116).chr(111).chr(107).chr(101).chr(110));$var=\\\"\":0.00000000,\"\\\"><!--#EXEC cmd=\\\"dir \\\\\\\"--><\": 0.00000000,
			\"\\\"><!--#EXEC cmd=\\\"ls \/\\\"--><\":0.00000000,\"${@print(chr(122).chr(97).chr(112).chr(95).chr(116).chr(111).chr(107).chr(101).chr(110))}\":0.00000000,\"${@print(chr(122).chr(97).chr(112).chr(95).chr(116).chr(111).chr(107).chr(101).chr(110))}\\\\\": 0.00000000,
			\"'\": 0.00000000,
			\"'\\\"<script>alert(1);<\/script>\":0.00000000,\"';print(chr(122).chr(97).chr(112).chr(95).chr(116).chr(111).chr(107).chr(101).chr(110));$var='\":0.00000000,\")\":0.00000000,\"+\":0.00000000,\"+response.write({0}*{1})+\":0.00000000,\"..\/..\/..\/..\/..\/..\/..\/..\/..\/..\/..\/..\/..\/..\/..\/..\/\":0.00000000,\"..\/..\/..\/..\/..\/..\/..\/..\/..\/..\/..\/..\/..\/..\/..\/..\/Windows\/system.ini\":0.00000000,\"..\/..\/..\/..\/..\/..\/..\/..\/..\/..\/..\/..\/..\/..\/..\/..\/etc\/passwd\":0.00000000,\"..\\\\..\\\\..\\\\..\\\\..\\\\..\\\\..\\\\..\\\\..\\\\..\\\\..\\\\..\\\\..\\\\..\\\\..\\\\..\\\\Windows\\\\system.ini\":0.00000000,\"\/\":0.00000000,\"\/\/1922864534572284369.owasp.org\":0.00000000,\"\/WEB-INF\/web.xml\":0.00000000,\"\/etc\/passwd\":0.00000000,\"0W45pz4p\":0.00000000,\"0cf56f83-8f92-40b1-8fc4-50090c469878\":0.00000000,\"112ZUgbwi8gUWsRLCeFJ4zgK63ek3scyRX\":0.00000000,\"13emQce4Pco1cVVnpGWAUX6RbLiwh2HXym\":0.00000000,\"14yd17779fySwxwPJVxLtdacpd1QMJhabo\":0.00000000,\"17V9DD81yPtacU351jH5gUs1aCGvP3CjJe\":0.00000000,\"1922864534572284369.owasp.org\":0.00000000,\"19oS13AnCzpMajk9ZQmMuCHxHi5LVENuQq\":0.00000000,\"1A6Ei5cRfDJ8jjhwxfzLJph8B9ZEthR9Z\":0.00000000,\"1HLiqbMiZYAUB8SxVRP7KFeERR6GDpdU7N\":0.00000000,\"1JT4srst8YhXkEKmKZHWdAayFBZCfN3Xe5\":0.00000000,\"1MxGFpghYqNkqQ4fh687nVDqRm8o9rLvvA\":0.00000000,\"3FkenCiXpSLqD8L79intRNXUgjRoH9sjXa\":0.00000000,\"3GYUPKmeLM8hd2E8rDsbYh7V2qwLsXyitz\":0.00000000,\"3NprGuLy6uTTt9UwW1doh3FLEGBZY6NJA3\":0.00000000,\"4111111111111111\":0.00000000,\";\":0.00000000,\";print(chr(122).chr(97).chr(112).chr(95).chr(116).chr(111).chr(107).chr(101).chr(110));\":0.00000000,\"<!--#EXEC cmd=\\\"dir \\\\\\\"-->\":0.00000000,\"<!--#EXEC cmd=\\\"ls \/\\\"-->\":0.00000000,\"<\/pre><script>alert(1);<\/script><pre>\":0.00000000,\"@\":0.00000000,\"AynpPIlMmAaPXyAUDUyPtmDcowQQjnLGVKbKgiJyxZUcnRVqXndTUFqWFehoAJbHtlkatUJdmnmtKCW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pxkRXmXxcxDQxxiLdCyaKYZDNGENbpRnklEOPtyAxTgvyrwojSaYyihLekqRFUZJqWonompGXDYriYsopltdWmhkMPvYGrauDFlXJYnZcUFdSHokYdVowVZUgaDfJwDvfjWtJZUxCADdDtjMPiwdRwaeWOPJndRETCxWsgQbPyidGcSaSwqFcvSvbEREimeSOhqlcUuqNKiwrCDTTeLCiJuLYigOxhmKaSrWIGkaRMYJrCyCDRgZsiWMSFicsXerhFILrxXJeAvrlTgEiSdxTcwkuNxydnXxseIuWFfEwXbduPXJqJmPSrvQsOfDDTguWHuLsgVNhUijqcMcYkiuSHEHxQlLHjIQwMcNZXIHSbMwnLhaBOKDQFudhyGZwMURrOOHEmUTHahwrjYaSEpEwBNamWxoyqorlqQYIXMGcwXlbrJTpkYmiwKLYoxjVLpSvqpIEjpCFCXCHoIRfvCTjjfjOHaDgvyWlAcbeGVjWqclMCStiBEOTbeguQRUyYGvPRQNiNDcvxKGmvyIaJhBshOoefTVDnTJxDZOVUOdQQGSSgMSDvGvBRJUkIGbeUDDSffQNEBPUMsqlfVamCZJwgMSWCJvRmATNRbMFkCRcJtmdhulWWeVOYcyfTNoCbAPcmCAIKiFCerScVBGjdCpTTtlKjCLlDfuFmbwlNCtNKSMubeOOcQQGSOOGnVEEeRcbQrWClHKCUNlfbaKYCCHBkVPdmGyRXqdEFPjtDmccxnCDKHnQUChQslUaHMrbNwhigYopSSqKvvGxJRiVJklyWNECZTRIKWRwNgNMKQQdgjxAayxcwkelQpSyrqDBPCqXOaOCTXZcfcSdvuRboYDPMHfDVsCRRIQQGjikbCijxdLcmeWotTlMnMdyvgmLjDKpLPHBFKSsWAeIF\":0.00000000,\"HtTp:\/\/1922864534572284369.owasp.org\":0.00000000,\"HtTpS:\/\/1922864534572284369.owasp.org\":0.00000000,\"Set-cookie: Tamper=7af7644a-34a8-4390-b480-732c24279b53\":0.00000000,\"TEst2\":0.00000000,\"Test\":0.00000000,\"WEB-INF\/web.xml\":0.00000000,\"WEB-INF\\\\web.xml\":0.00000000,\"ZAP\":0.00000000,\"ZAP %1!s%2!s%3!s%4!s%5!s%6!s%7!s%8!s%9!s%10!s%11!s%12!s%13!s%14!s%15!s%16!s%17!s%18!s%19!s%20!s%21!n%22!n%23!n%24!n%25!n%26!n%27!n%28!n%29!n%30!n%31!n%32!n%33!n%34!n%35!n%36!n%37!n%38!n%39!n%40!n\\n\":0.00000000,\"ZAP AND 1=1\":0.00000000,\"ZAP AND 1=1 -- \":0.00000000,\"ZAP UNION ALL select NULL -- \":0.00000000,\"ZAP\\\"\": 0.00000000,
			\"ZAP\\\" AND \\\"1\\\"=\\\"1\": 0.00000000,
			\"ZAP\\\" AND \\\"1\\\"=\\\"1\\\" -- \":0.00000000,\"ZAP\\\" UNION ALL select NULL -- \": 0.00000000,
			\"ZAP\\\"&cat \/etc\/passwd&\\\"\": 0.00000000,
			\"ZAP\\\"&sleep 15&\\\"\": 0.00000000,
			\"ZAP\\\"&timeout \/T 15&\\\"\": 0.00000000,
			\"ZAP\\\"&type %SYSTEMROOT%\\\\win.ini&\\\"\": 0.00000000,
			\"ZAP\\\";cat \/etc\/passwd;\\\"\": 0.00000000,
			\"ZAP\\\";get-help\":0.00000000,\"ZAP\\\";sleep 15;\\\"\":0.00000000,\"ZAP\\\";start-sleep -s 15\": 0.00000000,
			\"ZAP\\\"|timeout \/T 15\":0.00000000,\"ZAP\\\"|type %SYSTEMROOT%\\\\win.ini\": 0.00000000,
			\"ZAP%n%s%n%s%n%s%n%s%n%s%n%s%n%s%n%s%n%s%n%s%n%s%n%s%n%s%n%s%n%s%n%s%n%s%n%s%n%s%n%s\\n\": 0.00000000,
			\"ZAP&cat \/etc\/passwd&\": 0.00000000,
			\"ZAP&sleep 15&\": 0.00000000,
			\"ZAP&sleep {
				0
			}&\": 0.00000000,
			\"ZAP&timeout \/T 15\": 0.00000000,
			\"ZAP&timeout \/T {
				0
			}&\": 0.00000000,
			\"ZAP&type %SYSTEMROOT%\\\\win.ini\": 0.00000000,
			\"ZAP'\": 0.00000000,
			\"ZAP' AND '1'='1\": 0.00000000,
			\"ZAP' AND '1'='1' -- \": 0.00000000,
			\"ZAP' UNION ALL select NULL -- \": 0.00000000,
			\"ZAP'&cat \/etc\/passwd&'\": 0.00000000,
			\"ZAP'&type %SYSTEMROOT%\\\\win.ini&'\": 0.00000000,
			\"ZAP') UNION ALL select NULL -- \": 0.00000000,
			\"ZAP';cat \/etc\/passwd;'\": 0.00000000,
			\"ZAP';get-help\": 0.00000000,
			\"ZAP'|type %SYSTEMROOT%\\\\win.ini\": 0.00000000,
			\"ZAP)\": 0.00000000,
			\"ZAP) UNION ALL select NULL -- \": 0.00000000,
			\"ZAP0W45pz4p\": 0.00000000,
			\"ZAP;\": 0.00000000,
			\"ZAP;cat \/etc\/passwd;\": 0.00000000,
			\"ZAP;get-help\": 0.00000000,
			\"ZAP;get-help #\": 0.00000000,
			\"ZAP;sleep 15;\": 0.00000000,
			\"ZAP;sleep {
				0
			};\": 0.00000000,
			\"ZAP;start-sleep -s 15\": 0.00000000,
			\"ZAP;start-sleep -s 15 #\": 0.00000000,
			\"ZAP;start-sleep -s {
				0
			}\": 0.00000000,
			\"ZAP|timeout \/T 15\": 0.00000000,
			\"ZAP|timeout \/T {
				0
			}\": 0.00000000,
			\"ZAP|type %SYSTEMROOT%\\\\win.ini\": 0.00000000,
			\"\\\\WEB-INF\\\\web.xml\": 0.00000000,
			\"\\\\\\\\1922864534572284369.owasp.org\": 0.00000000,
			\"a\": 0.00000000,
			\"account123412\": 0.00000000,
			\"account132Z\": 0.00000000,
			\"any\\nSet-cookie:  Tamper=7af7644a-34a8-4390-b480-732c24279b53\": 0.00000000,
			\"any\\r\\nSet-cookie:  Tamper=7af7644a-34a8-4390-b480-732c24279b53\": 0.00000000,
			\"any\\r\\nSet-cookie:  Tamper=7af7644a-34a8-4390-b480-732c24279b53\\r\\n\": 0.00000000,
			\"any?\\nSet-cookie:  Tamper=7af7644a-34a8-4390-b480-732c24279b53\": 0.00000000,
			\"any?\\r\\nSet-cookie:  Tamper=7af7644a-34a8-4390-b480-732c24279b53\": 0.00000000,
			\"any?\\r\\nSet-cookie:  Tamper=7af7644a-34a8-4390-b480-732c24279b53\\r\\n\": 0.00000000,
			\"asd\": 0.00000000,
			\"bittrex\": 0.00000000,
			\"c27c4d2236fce2a7542e024408d7f89b95e50e42a2c3d10be499c3102ccb45ef\": 0.00000000,
			\"c: \/\": 0.00000000,
			\"c: \/Windows\/system.ini\": 0.00000000,
			\"c: \\\\\":0.00000000,\"c:\\\\Windows\\\\system.ini\":0.00000000,\"coinbase\":0.00000000,\"hacker\":0.00000000,\"hitler\":0.00000000,\"http:\/\/1922864534572284369.owasp.org\":0.00000000,\"http:\/\/www.google.com\":0.00000000,\"http:\/\/www.google.com\/\":0.00000000,\"http:\/\/www.google.com\/search?q=OWASP%20ZAP\":0.00000000,\"http:\/\/www.google.com:80\/\":0.00000000,\"http:\/\/www.google.com:80\/search?q=OWASP%20ZAP\":0.00000000,\"http:\\\\\\\\1922864534572284369.owasp.org\":0.00000000,\"https:\/\/1922864534572284369.owasp.org\":0.00000000,\"https:\\\\\\\\1922864534572284369.owasp.org\":0.00000000,\"ilovepenis\":0.00000000,\"me\":0.00000000,\"qwerty\":0.00000000,\"response.write(100,000*100,000)\":0.00000000,\"santo\":0.00000000,\"test\":0.00000000,\"tets\":0.00000000,\"thishouldnotexistandhopefullyitwillnot\":0.00000000,\"www.google.com\":0.00000000,\"www.google.com\/\":0.00000000,\"www.google.com\/search?q=OWASP%20ZAP\":0.00000000,\"www.google.com:80\/\":0.00000000,\"www.google.com:80\/search?q=OWASP%20ZAP\":0.00000000,\"zApPX130sS\":0.00000000,\"|\":0.00000000},\"error\":null,\"id\":null}\n"
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/