@bitcoincash/electrum-client
v1.2.1
Published
Electrum protocol client for Node.js supporting Fulcrum
Maintainers
Readme
electrum-client
Strictly typed Electrum Protocol Client (TypeScript) for Node.js, compatible with Fulcrum. BCH compatible.
Created by Melroy van den Berg.
Based on
- https://github.com/you21979/node-electrum-client
- https://github.com/7kharov/node-electrum-client
- https://github.com/BlueWallet/rn-electrum-client
- https://github.com/janoside/electrum-client
- https://github.com/mempool/electrum-client
Features
- Persistence (ping strategy and reconnection)
- Batch requests
- Works in nodejs
Protocol spec
- https://electrum-cash-protocol.readthedocs.io/en/latest/index.html
Usage
Relies on net so will only run in Node.JS environment.
import { ElectrumClient } from '@bitcoincash/electrum-client'
const client = new ElectrumClient({
host: 'localhost',
port: 50002,
protocol: 'tcp'
})
await client.connect()