Bitcoin Forum
December 13, 2017, 11:12:08 PM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Wallet balance  (Read 790 times)
bitnanigans
Sr. Member
****
Offline Offline

Activity: 266


View Profile
October 26, 2014, 05: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?
1513206728
Hero Member
*
Offline Offline

Posts: 1513206728

View Profile Personal Message (Offline)

Ignore
1513206728
Reply with quote  #2

1513206728
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1513206728
Hero Member
*
Offline Offline

Posts: 1513206728

View Profile Personal Message (Offline)

Ignore
1513206728
Reply with quote  #2

1513206728
Report to moderator
1513206728
Hero Member
*
Offline Offline

Posts: 1513206728

View Profile Personal Message (Offline)

Ignore
1513206728
Reply with quote  #2

1513206728
Report to moderator
1513206728
Hero Member
*
Offline Offline

Posts: 1513206728

View Profile Personal Message (Offline)

Ignore
1513206728
Reply with quote  #2

1513206728
Report to moderator
gweedo
Legendary
*
Offline Offline

Activity: 1246


Java, PHP, HTML/CSS Programmer for Hire!


View Profile WWW
October 26, 2014, 05: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.

Want to earn 2500 SATOSHIS per hour? Come Chat and Chill in https://goseemybits.com/lobby
bitok.com
Member
**
Offline Offline

Activity: 79

Best deposit/withdrawal fees on the market


View Profile WWW
October 28, 2014, 01:30:05 PM
 #3

I suppose It'll be convenient to see both balances: what you can spend right now and total balance (including unconfirmed transactions)

Bitok.com offers great value for daily traders.
Exchange BTC, LTC, DOGE to USD, EUR and RUB.
Instant exchange: https://bitok.com/instant
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!