🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

clightning-client

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clightning-client

JavaScript c-lightning client

latest
Source
npmnpm
Version
0.1.4
Version published
Weekly downloads
24
-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

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));

Keywords

lightning

FAQs

Package last updated on 27 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts