4

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.

1
  • Anyone with a local API solution to the same question?
    – qdot
    Commented Jan 12, 2014 at 9:16

1 Answer 1

5

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

1
  • Nice, ?format=json is useful!
    – q9f
    Commented Jan 8, 2014 at 20:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.