0.1.4 • Published 3 years ago

clightning-client v0.1.4

Weekly downloads
11
License
MIT
Repository
github
Last release
3 years ago

clightning-client-js

JavaScript c-lightning client.

Forked from BHBNETWORK/lightning-client-js.

This repository is published as the clightning-client NPM module. The original library is published as lightning-client (no c).

Installing the client

You can easily install this client using npm by running:

npm install clightning-client

Using the client

Once the client is installed you can use it by loading the main class and instantiating it in this way:

const LightningClient = require('clightning-client');

// This should point to your lightning-rpc unix socket, by default in ~/.lightning/lightning-rpc
const client = new LightningClient('/home/bitcoind/.lightning/lightning-rpc');

// Every call returns a Promise
client.getinfo()
    .then(info => console.log(info));
0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

4 years ago

0.1.1

5 years ago

0.1.0

5 years ago