Author

Topic: What would be the best way to get the balance of an address? (Read 1203 times)

legendary
Activity: 2506
Merit: 1010
I assume that means that parsing the full blockchain is the way to go.

There are others;

 - libBitcoin
 - Armory (see Extras)
 - Bitcoin ABE
 - BitcoinJ
 - BitcoinJS
sr. member
Activity: 448
Merit: 254
So I assume that means that parsing the full blockchain is the way to go. I cannot rely on a third party.

Check out blockparser.  The command would be something like blockparser tally <address>.  Requires synced blockchain from original client, Ubuntu x86-64.  There may be a way to query arbitrary addresses through the original client's RPC commands, too.
legendary
Activity: 3598
Merit: 2386
Viva Ut Vivas
Would I be able to do this with a call from bitcoinj or would I need to add up transactions through the blockchain or what?

There is a service that might help, if you weren't aware of it:

 - http://btcbalance.net


Also, via API:
 - https://blockexplorer.com/q/addressbalance/

 - http://blockchain.info/q/addressbalance/


So I assume that means that parsing the full blockchain is the way to go. I cannot rely on a third party.
legendary
Activity: 2506
Merit: 1010
Would I be able to do this with a call from bitcoinj or would I need to add up transactions through the blockchain or what?

There is a service that might help, if you weren't aware of it:

 - http://btcbalance.net


Also, via API:
 - https://blockexplorer.com/q/addressbalance/

 - http://blockchain.info/q/addressbalance/
legendary
Activity: 3598
Merit: 2386
Viva Ut Vivas
I am looking to check an address to see if it is empty and if not empty, check to see how many bitcoins the address contains.

Would I be able to do this with a call from bitcoinj or would I need to add up transactions through the blockchain or what?
Jump to: