Author

Topic: How to get balance of whole wallet confirmed at least 1 (or 2) confirmations? (Read 2881 times)

sr. member
Activity: 350
Merit: 252
probiwon.com
getbalance '*' 1

... will do what you want in the next version of bitcoin.  I need people to help download and build and test it.


Code:
$ ./bitcoind getbalance '*' 1
error: {"code":-11,"message":"Invalid account name"}

0.3.20 from git
sr. member
Activity: 350
Merit: 252
probiwon.com
Thank you, yes, it's what I am need.
legendary
Activity: 1652
Merit: 2216
Chief Scientist
getinfo and getbalance (with no arguments)... are a little complicated.

They include all 1 confirmation receive transactions, but (this is the complicated part) they also include 0-confirmation receives if they are self-sends (either the "change" from coins you just sent or all the coins if you sent to one of your own addresses).

In any case, I think they will do exactly what you want-- show you coins that have at least one confirmation or that you are certain you are able to spend (because they are your own 0-confirmation coins).

sr. member
Activity: 350
Merit: 252
probiwon.com
getinfo shows amounts confirmed by 1 confirmation?
legendary
Activity: 1652
Merit: 2216
Chief Scientist
getbalance '*' 1

... will do what you want in the next version of bitcoin.  I need people to help download and build and test it.
sr. member
Activity: 350
Merit: 252
probiwon.com
If I just use the command
Code:
bitcoin getbalance
(so without any additional parameters on the line), I get my total balance.
This is with normal bitcoin client 0.3.19 running in server mode.

I am need only balance of confirmed transactions.
jr. member
Activity: 39
Merit: 1
If I just use the command
Code:
bitcoin getbalance
(so without any additional parameters on the line), I get my total balance.
This is with normal bitcoin client 0.3.19 running in server mode.
sr. member
Activity: 350
Merit: 252
probiwon.com
Code:
bitcoin@s7:~$ bitcoin/bitcoin getbalance 1
0.00000000
bitcoin@s7:~$ bitcoin/bitcoin getbalance '' 1
-60051.16000000 <- not a real balance
bitcoin@s7:~$ bitcoin/bitcoin getbalance "" 1
-60051.16000000 <- not a real balance
bitcoin@s7:~$ bitcoin/bitcoin getbalance minconf=1
0.00000000 <- not a real balance
bitcoin@s7:~$ bitcoin/bitcoin getbalance dsf
0.00000000 <- hmmm?
bitcoin@s7:~$ bitcoin/bitcoin getbalance * 1
error: type mismatch
bitcoin@s7:~$ bitcoin/bitcoin getbalance * 2
error: type mismatch
bitcoin@s7:~$ bitcoin/bitcoin getbalance '*' 2
error: {"code":-11,"message":"Invalid account name"}
bitcoin@s7:~$ bitcoin/bitcoin getbalance 2
0.00000000 <- not real balance real balance
bitcoin@s7:~$ bitcoin/bitcoin getbalance '*' minconf=1
error: type mismatch
Jump to: