Bitcoin Forum
May 22, 2018, 03:48:45 PM *
News: Latest stable version of Bitcoin Core: 0.16.0  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: PHP connect to Electrum server  (Read 784 times)
dave111223
Hero Member
*****
Offline Offline

Activity: 980
Merit: 1000


The All-in-One Cryptocurrency Exchange


View Profile
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)

██████
███
███
███
███
███
███
███
███
███
███
███
███
                ▄███
              ▄███▌ █
             ▀▀▀██▄  █
           ▄███▄▄ ▀▀▀█
          █ █████▀▀▀▄▄
         ▄██ ███▄    █
        ▐███▀   ▀█   █
        ████     █   █
       ▄██▀▄█▄▄▄█▀   █
       ▀▄▄███▌      █
   ▄▄▄▀▀▀████       █
 ▄▀    ██ ██       █
▐▌     ██▌▐▌      ▀▄
█      ██ █         ▀▄
█      █▀▄▌          █
█   ▄▀█▄██           █
█ ▄▀      ▀▀▄▄▀▄     █
▀▀             █    █
               █  ▄▀
               ▀▄█
     ▀█████████████▄▄
  ▀ ▀▀▀███████████████▌
   ▀ ▀▀▀▀██▀▀▀▀▀▀██████         ▄███████▄      ▄▄███████▄    ▄███▄    ▄███▄ ▄███▄      ▄███▄
▀ ▀▀▀▀█████▄▄▄▄▄▄█████▌       ▄████▀▀▀████▄   ▐████▀▀█████   ▀████▄  ▄████▀ █████▄    ▄█████
    ▀▀███████████████▀       █████     ████▌          ████▌    ▀████████▀    █████▄  ▄█████▌
   ▀ ▀████████████████▀ ▀    ██████████████▌   ▄▄██████████     ▄██████▄      █████▄▄█████▌
     ██████      ██▀▀▀▀▀▀▀ ▀ █████▀▀▀▀▀▀▀▀    █████▀▀▀█████    ▄████████▄      ██████████▌
     ██████▄▄▄▄▄▄██████▄ ▄    ████▄▄   ▄▄█▄   ████▄  ▄█████  ▄█████▀▀█████▄     ████████▌
     █████████████████▀        ▀███████████   ▀████████████  ████▀    ▀████      ██████▌
     ██████████████▀▀             ▀▀▀▀▀▀▀       ▀▀▀▀▀▀ ▀▀▀    ▀▀        ▀▀        █████
                                                                                ▄█████
                                                                            ▄███████▀
                                                                            ▀████▀▀
███
███
███
███
███
███
███
███
███
███
███
███
██████
|█████████████████
███████████████████
█████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
  WHITEPAPER 
  LIGHTPAPER...
|Instant Deposit
✓ 24/7 Support
Referral Program
1527004125
Hero Member
*
Offline Offline

Posts: 1527004125

View Profile Personal Message (Offline)

Ignore
1527004125
Reply with quote  #2

1527004125
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1527004125
Hero Member
*
Offline Offline

Posts: 1527004125

View Profile Personal Message (Offline)

Ignore
1527004125
Reply with quote  #2

1527004125
Report to moderator
fbueller
Sr. Member
****
Offline Offline

Activity: 412
Merit: 250


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
*
Online Online

Activity: 1736
Merit: 1028



View Profile WWW
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: 250


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
*
Online Online

Activity: 1736
Merit: 1028



View Profile WWW
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:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!