nodejs-lnd-grpc-client
v0.2.4
Published
This package is a grpc client for [lnd](https://github.com/lightningnetwork/lnd) v0.2.1-alpha. It is generated code from [rpc.proto](https://github.com/lightningnetwork/lnd/blob/2486097554baf8fe61b4e531e42d3c725dd0fca5/lnrpc/rpc.proto).
Downloads
1
Readme
Description
This package is a grpc client for lnd v0.2.1-alpha. It is generated code from rpc.proto.
Usage
To use rpc calls you can use methods in exported client object.
const LND_URL = '127.0.0.1:10009'; /* some lnd ip address with port */
var client = require('nodejs-lnd-grpc-client').create(LND_URL);
client.getInfo({}, function(err, info) {
if (!err)
console.log(info);
else
console.log(err);
});