Title: Some questions regarding the JSON RPC API Post by: xabbix on November 23, 2013, 07:04:31 PM This is my bitcoin balance:
Code: [root@server ~]# bitcoind getbalance Here is a list of all accounts: Code: [root@server ~]# bitcoind listaccounts How is it possible that I a negative value on the default account? Here is the list of addresses assigned to both default and Test account: Code: [root@server ~]# bitcoind getaddressesbyaccount Test As you saw before I have some balance but checking these five addresses none of them has any balance according to blockchain.info Now it get's weirder, let's list all addresses: Code: [root@server ~]# bitcoind listaddressgroupings How come I get so many addresses? When I listed all available accounts and their addresses there were 5 listed. And also, none of the above addresses has any balance in them.. Title: Re: Some questions regarding the JSON RPC API Post by: kjj on November 24, 2013, 12:43:15 PM How is it possible that I a negative value on the default account? Accounts don't work like you think they should. Lots of threads on this. How come I get so many addresses? Change. Title: Re: Some questions regarding the JSON RPC API Post by: xabbix on November 24, 2013, 03:06:51 PM Is there a JSON RPC command I can run to show me either all addresses or only addresses with positive balance in them?
Thanks Title: Re: Some questions regarding the JSON RPC API Post by: kjj on November 25, 2013, 04:03:17 AM You could run listunspent and work backwards from the scriptPubKey.
But why? |