Bitcoin Forum
December 14, 2024, 04:21:23 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: getting available balance of account  (Read 453 times)
romsa9 (OP)
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
August 20, 2013, 08:21:06 PM
 #1

I am trying to determine the available bitcoins in an account. What i mean is:

The confirmed balance minus any zero-confirmation transactions.

problem is.. using getBalance(1confirm) will return the full balance, not subtracting any pending transactions.

getBalance(0confirm) will include incoming transactions that have not yet been confirmed.

Would this work:

Balance(0confirm) - ( Received(0confirm) - Received(1confirm) )
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!