The way to entry Electrum remotely by way of the remainder api?

0
73


I’m able to execute calls on the server from the server. Once I say calls, I imply like this. I.e. I can get the most recent addresses doing one thing like this:

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, "http://127.0.0.1:7777");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "{"id":"curltext","technique":"listaddresses"}");
curl_setopt($ch, CURLOPT_POST, 1);

$headers = array();
$headers[] = "Content material-Kind: software/x-www-form-urlencoded";
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$consequence = curl_exec($ch);
if (curl_errno($ch)) {
    echo 'Error:' . curl_error($ch);
}
curl_close ($ch);
print '<pre>';
print_r($consequence);

The issue is, I do not need to need to execute this on the server. I hoped there could be a safe solution to execute this remotely.

Can somebody please inform me if that is potential? I attempted opening port 7777, however nonetheless cannot entry it. Is it maybe on goal? As I can think about this being a safety downside.

Thanks!



Supply hyperlink

Leave a reply