Socket
Socket
Sign inDemoInstall

lnd-rest-client

Package Overview
Dependencies
1
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    lnd-rest-client

[![npm](https://img.shields.io/npm/v/lnd-rest-client?style=plastic)](https://www.npmjs.com/package/lnd-rest-client)


Version published
Maintainers
1
Install size
530 kB
Created

Readme

Source

LND REST Client

npm

This project will wrap the entire LND REST API for use in NodeJS. It is currently under development and accepting contributions.

Installation

npm install lnd-rest-client

or

yarn add lnd-rest-client

Usage

import { LndRestClient } from 'lnd-rest-client';

const lndRestClient = new LndRestClient(baseUrl, {
  admin: process.env.ADMIN_MACAROON,
  base: process.env.BASE_MACAROON,
  invoice: process.env.INVOICE_MACAROON,
  readonly: process.env.READ_ONLY_MACAROON,
});

const paymentRequestInfo = await lndRestClient.getPaymentRequest(paymentRequest);

Local Development

Below is a list of commands you will probably find useful.

npm start or yarn start

Runs the project in development/watch mode. Your project will be rebuilt upon changes.

Your library will be rebuilt if you make edits.

npm run build or yarn build

Bundles the package to the dist folder.

The package is optimized and bundled with Rollup into multiple formats (CommonJS, UMD, and ES Module).

npm test or yarn test

Runs the test watcher (Jest) in an interactive mode. By default, runs tests related to files changed since the last commit.

FAQs

Last updated on 21 Mar 2021

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc