# electrum-client

> Electrum protocol client for node.js

Latest version **0.0.6** (published 2018-02-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install electrum-client
pnpm add electrum-client
yarn add electrum-client
bun add electrum-client
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.6 |
| Published | 2018-02-09 |
| First published | 2017-07-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6 |
| Dependencies | 0 |
| Unpacked size | 18.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 37 |
| Author | Yuki Akiyama |
| Maintainers | you21979 |
| Keywords | client, electrum, bitcoin |

## Links

- npm: https://www.npmjs.com/package/electrum-client
- Repository: https://github.com/you21979/node-electrum-client
- Homepage: https://github.com/you21979/node-electrum-client#readme
- Issues: https://github.com/you21979/node-electrum-client/issues
- npm.io page: https://npm.io/package/electrum-client

## Alternatives

- [launchdarkly-js-client-sdk](https://npm.io/package/launchdarkly-js-client-sdk.md) — 2.5M weekly downloads
- [@elastic/elasticsearch](https://npm.io/package/@elastic/elasticsearch.md) — 2.1M weekly downloads
- [@c8y/client](https://npm.io/package/@c8y/client.md) — 15.3K weekly downloads
- [@signaldb/maverickjs](https://npm.io/package/@signaldb/maverickjs.md) — 1.7K weekly downloads
- [@bbc/http-transport-cache](https://npm.io/package/@bbc/http-transport-cache.md) — 1.2K weekly downloads

## Recent versions

- 0.0.6 (latest) — 2018-02-09
- 0.0.5 — 2017-10-30
- 0.0.4 — 2017-07-20
- 0.0.3 — 2017-07-10
- 0.0.2 — 2017-07-10
- 0.0.1 — 2017-07-10

## README

# node-electrum-client

Electrum Protocol Client for Node.js

## what is this

https://electrum.org/

electrum is bitcoin wallet service.  
This is a library of Node.js that can communicate with the electrum(x) server.  

## install

```
npm i electrum-client
```

## spec

* http://docs.electrum.org/en/latest/protocol.html
* TCP / TLS
* JSON-RPC
* Subscribe Message
* High Performance Message
* no dependency for other library

## usage

```
const ElectrumCli = require('electrum-client')
const main = async () => {
    const ecl = new ElectrumCli(995, 'btc.smsys.me', 'tls') // tcp or tls
    await ecl.connect() // connect(promise)
    ecl.subscribe.on('blockchain.headers.subscribe', (v) => console.log(v)) // subscribe message(EventEmitter)
    try{
        const ver = await ecl.server_version("2.7.11", "1.0") // json-rpc(promise)
        console.log(ver)
    }catch(e){
        console.log(e)
    }
    await ecl.close() // disconnect(promise)
}
main()
```

---
_Source: https://npm.io/package/electrum-client · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
