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