Bitcoin Forum
December 12, 2024, 02:33:14 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: PHP connect to Electrum server  (Read 890 times)
dave111223 (OP)
Legendary
*
Offline Offline

Activity: 1190
Merit: 1001


View Profile WWW
February 20, 2014, 12:07:09 AM
 #1

I'm trying to connect directly (using PHP) to Electrum servers to receive a list of a transactions for an address or mpk in general.

What format do requests need to be sent to an electrum server in order to retrieve data?

(Not literate in python so not able to easily glean this from the source)
fbueller
Sr. Member
****
Offline Offline

Activity: 412
Merit: 287


View Profile
March 29, 2014, 11:52:53 PM
 #2

I'm trying to connect directly (using PHP) to Electrum servers to receive a list of a transactions for an address or mpk in general.

What format do requests need to be sent to an electrum server in order to retrieve data?

(Not literate in python so not able to easily glean this from the source)

Did you ever have any luck with this? I was thinking of writing something similar a while ago but never got to it. If you made a start I can have a look?

Bitwasp Developer.
Abdussamad
Legendary
*
Offline Offline

Activity: 3710
Merit: 1586



View Profile
March 30, 2014, 02:01:59 AM
 #3

I'm trying to connect directly (using PHP) to Electrum servers to receive a list of a transactions for an address or mpk in general.

What format do requests need to be sent to an electrum server in order to retrieve data?

(Not literate in python so not able to easily glean this from the source)

Did you ever have any luck with this? I was thinking of writing something similar a while ago but never got to it. If you made a start I can have a look?

The newest version of electrum has support for all of this. Run electrum help to see. Some of hte commands:

getaddresshistory
getrawtransaction
decoderawtransaction
getaddressunspent
fbueller
Sr. Member
****
Offline Offline

Activity: 412
Merit: 287


View Profile
March 30, 2014, 09:58:09 PM
 #4

This would mean firing up electrum each time. Connecting to a random electrum server to quickly poll for transactions could be quicker.

Bitwasp Developer.
Abdussamad
Legendary
*
Offline Offline

Activity: 3710
Merit: 1586



View Profile
March 31, 2014, 01:15:34 AM
 #5

This would mean firing up electrum each time. Connecting to a random electrum server to quickly poll for transactions could be quicker.

Electrum stays up for a few minutes in daemon mode now when you run it this way.
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!