Skip to content

Repository files navigation

electrum-client-js

JavaScript implementation of Electrum Protocol Client.

This is a library that can communicate with the ElectrumX Server on tcp, ssl, ws and wss protocols.

Works in node.js and browser.

Implements methods described in Electrum Protocol methods documentation.

Subscriptions and notifications are also supported, please see example.

Continuous Integration

Latest build status: CI

Install

npm install --save @keep-network/electrum-client-js

Usage

constElectrumClient=require('@keep-network/electrum-client-js')asyncfunctionmain(){constclient=newElectrumClient('electrum.bitaroo.net',50002,'ssl')try{awaitclient.connect('electrum-client-js',// optional client name'1.4.2'// optional protocol version)constheader=awaitclient.blockchain_headers_subscribe()console.log('Current header:',header)awaitclient.close()}catch(err){console.error(err)}}main()

See more examples.

About

Electrum Client for node.js

Topics

Resources

Stars

14 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages