A gRPC wrapper for LND (Lightning Network Daemon) that provides easy-to-use async/promise support, automatic version detection, and supports all lnd gRPC sub-services. Version 0.5.4 is stable and actively maintained. Key differentiators include automatic lnd version detection and lndconnect URI support, making it simpler than using raw gRPC libraries. It bundles protobuf definitions for various lnd versions and handles TLS/macaroon authentication. Released under MIT license by LN-Zap.
npm install lnd-grpcNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes and connects to an lnd node using environment variables, then fetches node info via the Lightning service.
Use `import LndGrpc from 'lnd-grpc'` instead.
Use `waitForCert` and `waitForMacaroon` options to set timeouts, or implement your own timeout wrapper.
Monitor releases for migration to `@grpc/grpc-js`.
Use absolute paths or `path.resolve(os.homedir(), '.lnd/...')`.
Check the lnd version with `lncli getinfo` and pass the exact string.
Ensure LND is running and `host` is correct. Verify TLS certificate path is valid.
Use `import LndGrpc from 'lnd-grpc'` or `const LndGrpc = require('lnd-grpc').default`.Ensure wallet is initialized and provide correct path. Use `waitForMacaroon` if wallet is created after startup.
Ensure `await grpc.connect()` resolves before accessing `grpc.services.Lightning`.