T402 API Reference - v2.8.0
    Preparing search index...

    Interface ClientLightningSigner

    ClientLightningSigner - Used by t402 clients to pay Lightning invoices

    Implementations may include:

    • LND node client
    • CLN (Core Lightning) client
    • WebLN browser extension
    interface ClientLightningSigner {
        payInvoice(
            bolt11: string,
        ): Promise<{ preimage: string; paymentHash: string }>;
        getNodePubKey(): string;
    }
    Index

    Methods

    • Pay a BOLT11 Lightning invoice

      Parameters

      • bolt11: string

        BOLT11 invoice string

      Returns Promise<{ preimage: string; paymentHash: string }>

      Payment result with preimage and payment hash