Author

Topic: getting available balance of account (Read 431 times)

newbie
Activity: 28
Merit: 0
August 20, 2013, 04: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) )
Jump to: