I have an arbitrary address. How can I get the current balance of the account through a Web API? ... how do I get it for a local API?
I'm also interested in all transaction history for that address. Let me know if the API can offer that as well.
Bitcoin Stack Exchange is a question and answer site for Bitcoin crypto-currency enthusiasts. It only takes a minute to sign up.
Sign up to join this communityI have an arbitrary address. How can I get the current balance of the account through a Web API? ... how do I get it for a local API?
I'm also interested in all transaction history for that address. Let me know if the API can offer that as well.
You can query the unspent outputs of an address with this:
http://blockchain.info/unspent?active=$bitcoin_address
You can get the transaction history for an address with this:
http://blockchain.info/address/$bitcoin_address?format=json
For more information see http://blockchain.info/api/blockchain_api