Author

Topic: Wallet balance (Read 900 times)

member
Activity: 79
Merit: 10
Best deposit/withdrawal fees on the market
October 28, 2014, 08:30:05 AM
#3
I suppose It'll be convenient to see both balances: what you can spend right now and total balance (including unconfirmed transactions)
legendary
Activity: 1498
Merit: 1000
October 26, 2014, 12:59:10 AM
#2
Unspent tx balances are the ones you want to show, since if it is already been spent you can't spend it again. The first one makes no sense.
sr. member
Activity: 266
Merit: 250
October 26, 2014, 12:52:11 AM
#1
I'm building a wallet for Android, and I was wondering what values would make sense to be displayed as the wallet balance.

I'm querying a third-party API for obtaining the balances. If I display the wallet balance making use of confirmed balances from transactions, it's possible that there may be unconfirmed transactions and this doesn't reflect the actual spendable balance. The other option is to get a list of the unspents available and display the total value of unspents as the wallet balance. Which seems more reasonable?
Jump to: