mock-lnd

JSON →
library 4.0.0 ·javascript
verified Jun 7, 2026

Mock LND gRPC Object for unit testing Lightning Network applications. Current version: 4.0.0 (requires Node >=22). Provides factory functions to create mock LND gRPC responses for invoices, forwards, payments, subscriptions, and more. Designed to simulate the authenticated LND API object returned by `ln-service`, enabling isolated unit tests without a real LND node. Provides overrides for key LND methods like `getChannels`, `getForwards`, `subscribeToInvoice`, and `payViaRoutes`. No external runtime dependencies.