{"library":"mock-lnd","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"4.0.0","tags":["javascript","lightning","lightning-network"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install mock-lnd","imports":["import { makeInvoice } from 'mock-lnd'","import { makeLnd } from 'mock-lnd'","import { makeForwardsResponse } from 'mock-lnd'"]},{"cmd":"yarn add mock-lnd","imports":[]},{"cmd":"pnpm add mock-lnd","imports":[]}],"homepage":"https://github.com/alexbosworth/mock-lnd#readme","github":"https://github.com/alexbosworth/mock-lnd","docs":null,"changelog":null,"pypi":null,"npm":"mock-lnd","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}