Skip to content

Example of how to connect to a public Bitcoin Electrum Server (Fulcrum) via Websockets (wss)

Notifications You must be signed in to change notification settings

hMsats/Electrum-Server-Websocket-Example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 

Repository files navigation

Electrum-Server-Websocket-Example

Connect to an electrum server via websockets

 

Install

sudo apt install nodejs
sudo apt install npm
npm i ws

 

Run

node websocket.js                       

and if successful this will output "Connection opened"

 

The connection will show up on the server side (fulcrum) as:

ID       IP:PORT                Typ  UAgent       ProtocolVer  Subs  HdrSub?  ReqRcv  RespSent  RecvBytes  SentBytes  TxsSent  Notifs  ErrorCt  Elapsed
4462488  <ip1>:49322        SSL  electrum/4.5.4   1.4          0     Y        5649    5649      418821     514796     0        118     0        22.44 hours
5535723  <ip2>:6653         SSL  electrum/4.5.3   1.4          0     Y        232     232       16934      11707      0        3       0        59.5 mins
5591372  <client ip>:33482  WSS  Unknown          1.4          0     N        0       0         0          0          0        0       0        52.1 secs

About

Example of how to connect to a public Bitcoin Electrum Server (Fulcrum) via Websockets (wss)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published