[](https://www.npmjs.com/package/lnd-rest-client)
npm install lnd-rest-client
This project will wrap the entire LND REST API for use in NodeJS. It is currently under development and accepting contributions.
``bash`
npm install lnd-rest-client
or
`bash`
yarn add lnd-rest-client
`typescript
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);
`
Below is a list of commands you will probably find useful.
Runs the project in development/watch mode. Your project will be rebuilt upon changes.
Your library will be rebuilt if you make edits.
Bundles the package to the dist` folder.
The package is optimized and bundled with Rollup into multiple formats (CommonJS, UMD, and ES Module).
Runs the test watcher (Jest) in an interactive mode.
By default, runs tests related to files changed since the last commit.