Closed melaxon closed 4 years ago
Your sample code does not look like it uses this library at all.
I noticed there are changes to electrumx since I originally wrote the electrum lib but the example below still works.
Seems that the library in it's current state is compatible with ElectrumX protocol prior to 1.3 so it will need to be updated.
<?php
require __DIR__ .'/vendor/autoload.php';
use webworker01\Komodo\Electrum;
$electrumhost = 'electrum1.cipig.net';
$electrumport = 10001;
$electrum = new Electrum();
$electrum->connect($electrumhost, $electrumport);
$serverVersion = $electrum->serverVersion();
echo '<pre>';
print_r($serverVersion);
echo '</pre>';
Details on what is required in #7 to get full functionality back.
By no means I cannot read from Electrumx.
I tried your package then I simplified the code as shown below, but I always receive "Connection reset by peer" I tried different hosts with the same result