Bitcoin Forum

Bitcoin => Electrum => Topic started by: themgp on December 24, 2013, 03:27:07 AM



Title: Getting address history from electrum server directly?
Post by: themgp on December 24, 2013, 03:27:07 AM
Is it possible to get the address history (or for my purposes, even better, the address balance) directly from an Electrum server using curl?  Something like this:
curl -i -X POST -d '{"id": 1, "method": "blockchain.block.get_history", "params": ["1HB5XMLmzFVj8ALj6mfBsbifRoD4miY36v"]}' http://electrum.bitcoins.sk:8081/



Title: Re: Getting address history from electrum server directly?
Post by: ThomasV on December 25, 2013, 05:51:45 PM
why don't you use the scripts in the scripts directory?


Title: Re: Getting address history from electrum server directly?
Post by: themgp on December 28, 2013, 05:10:36 AM
Thanks for pointing out this directory... i didn't know it was there.  I am trying to build a separate application that needs to do things such as retrieving the balance of a Bitcoin address without downloading the blockchain.  I want the application to be as fault tolerant as possible and it seems that Electrum servers may provide this (i also do not want Electrum client to be a dependency for my application).

It looks like most of what i need is in network.py and interface.py.  Hopefully i can put on my expert hacker hat and extract the logic i need.