Bitcoin Forum
May 30, 2024, 07:49:19 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Getting address history from electrum server directly?  (Read 793 times)
themgp (OP)
Newbie
*
Offline Offline

Activity: 56
Merit: 0


View Profile
December 24, 2013, 03:27:07 AM
 #1

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/

ThomasV
Moderator
Legendary
*
Offline Offline

Activity: 1896
Merit: 1353



View Profile WWW
December 25, 2013, 05:51:45 PM
 #2

why don't you use the scripts in the scripts directory?

Electrum: the convenience of a web wallet, without the risks
themgp (OP)
Newbie
*
Offline Offline

Activity: 56
Merit: 0


View Profile
December 28, 2013, 05:10:36 AM
 #3

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.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!