I would love to have the ability to get some response from ElectrumX/Fulcrum servers utilizing Linux command line instruments. I do know I can question servers utilizing Python and different programming language however I’m wondering if it is simply presumably in bash or related shells.
Python instance:
import socket
import ssl
from time import sleep
hostname="chipnet.c3-soft.com"
port = 64002
context = ssl.create_default_context()
knowledge = """{"technique":"server.model","params":[],"id":194}"""
with socket.create_connection((hostname, port)) as sock:
with context.wrap_socket(sock, server_hostname=hostname) as ssock:
ssock.ship(knowledge.encode('utf-8')+b'n')
sleep(0.5)
print(ssock.recv(1024))
Servers are often availables as TCP, SSL, WS or WSS, I am principally of connecting to TCP or SSL.
