Bitcoin Forum
December 16, 2017, 01:44:39 PM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: How to get balance of whole wallet confirmed at least 1 (or 2) confirmations?  (Read 2746 times)
bitcoinex
Sr. Member
****
Offline Offline

Activity: 350


probiwon.com


View Profile WWW
January 24, 2011, 09:01:31 PM
 #1

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

New bitcoin lottery: probiwon.com
- Может, ты ещё и в Невидимую Руку Рынка веруешь? - Зачем же веровать в то, что можно наблюдать непосредственно?
Unlike traditional banking where clients have only a few account numbers, with Bitcoin people can create an unlimited number of accounts (addresses). This can be used to easily track payments, and it improves anonymity.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1513431879
Hero Member
*
Offline Offline

Posts: 1513431879

View Profile Personal Message (Offline)

Ignore
1513431879
Reply with quote  #2

1513431879
Report to moderator
bfever
Jr. Member
*
Offline Offline

Activity: 39


View Profile WWW
January 24, 2011, 09:24:42 PM
 #2

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.

Use your freedom, use bitcoins !

Bitcoin Relational Database (in MySQL) aka The BiRD now available.
Universal Bitcoin Smartcard coming soon.

UBiCard - BiRD donations: 1UbicardpLQiAhGfEWKaV5xnKkmgzj1Ce
bitcoinex
Sr. Member
****
Offline Offline

Activity: 350


probiwon.com


View Profile WWW
January 24, 2011, 09:32:36 PM
 #3

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.

New bitcoin lottery: probiwon.com
- Может, ты ещё и в Невидимую Руку Рынка веруешь? - Зачем же веровать в то, что можно наблюдать непосредственно?
Gavin Andresen
Legendary
*
Offline Offline

Activity: 1652


Chief Scientist


View Profile WWW
January 24, 2011, 09:35:09 PM
 #4

getbalance '*' 1

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

How often do you get the chance to work on a potentially world-changing project?
bitcoinex
Sr. Member
****
Offline Offline

Activity: 350


probiwon.com


View Profile WWW
January 25, 2011, 12:01:00 PM
 #5

getinfo shows amounts confirmed by 1 confirmation?

New bitcoin lottery: probiwon.com
- Может, ты ещё и в Невидимую Руку Рынка веруешь? - Зачем же веровать в то, что можно наблюдать непосредственно?
Gavin Andresen
Legendary
*
Offline Offline

Activity: 1652


Chief Scientist


View Profile WWW
January 25, 2011, 02:19:43 PM
 #6

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).


How often do you get the chance to work on a potentially world-changing project?
bitcoinex
Sr. Member
****
Offline Offline

Activity: 350


probiwon.com


View Profile WWW
January 25, 2011, 02:56:03 PM
 #7

Thank you, yes, it's what I am need.

New bitcoin lottery: probiwon.com
- Может, ты ещё и в Невидимую Руку Рынка веруешь? - Зачем же веровать в то, что можно наблюдать непосредственно?
bitcoinex
Sr. Member
****
Offline Offline

Activity: 350


probiwon.com


View Profile WWW
January 29, 2011, 04:39:39 AM
 #8

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

New bitcoin lottery: probiwon.com
- Может, ты ещё и в Невидимую Руку Рынка веруешь? - Зачем же веровать в то, что можно наблюдать непосредственно?
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!