Modules§
Structs§
- Create
Invoice Request - Create
Invoice Response - GetBalances
Response - GetLn
Onchain Address Response - GetNode
Info Response - GetRoute
Hints Response - Intercept
Payment Request - Intercept
Payment Response - Lightning
Context - Represents an active connection to the lightning node.
- List
Channels Response - LnRpc
Tracked - A wrapper around
Arc<dyn ILnRpcClient>that tracks metrics for each RPC call. - Open
Channel Response - PayInvoice
Response - Preimage
- Send
Onchain Response
Enums§
Constants§
- MAX_
LIGHTNING_ RETRIES - NO_
INCOMING_ CIRCUIT - The
(incoming_chan_id, htlc_id)circuit key reported for a payment that did not arrive as an intercepted forward and therefore has no incoming circuit to resolve: an LNv2 payment held by a HOLD invoice on the gateway’s own node, and every payment reported by the LDK backend.
Traits§
- ILnRpc
Client - A trait that the gateway uses to interact with a lightning node. This allows the gateway to be agnostic to the specific lightning node implementation being used.
Type Aliases§
- Lnv2
Hold Invoice Filter - Returns
trueif the given payment hash corresponds to a HOLD invoice that the gateway created on behalf of a federation. Used by the LND backend to ignore unrelated HOLD invoices on a shared LND node, which would otherwise be mistaken for federation-bound payments and produce invalid responses on LND’s HTLC interceptor wire. - Route
Htlc Stream