lnd-async is a JavaScript client library for connecting to LND (Lightning Network Daemon) via gRPC with native promise support. Version 4.2.2 supports LND 0.17.0-beta. It wraps all gRPC callbacks into promises, simplifying async usage. Key differentiators: built-in macaroon authentication, support for base64-encoded credentials, long integer treatment (defaults to strings to avoid data loss), and access to multiple LND services (Lightning, Invoices, etc.). It has a moderate release cadence with updates following LND releases.
npm install lnd-asyncNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Connects to LND using default localhost port, fetches node info, and prints key details.
Upgrade Node.js to version 10 or later, or use lnd-async@3.x.
If you need numbers, set longsAsNumbers: true, but be aware of potential precision loss beyond 2^53-1.
Run 'npm install grpc' in your project.
Use base64 -w 0 command (no line wrapping). For cert, the base64 string must be decoded to the binary cert internally.
Ensure lnd-async version matches your LND API version. For LND 0.17.0-beta, use lnd-async^4.2.2.
Run 'npm install grpc' in your project directory.
Use const lnd = require('lnd-async'); instead of import lnd from 'lnd-async';.