@getalby/sdk
    Preparing search index...

    Class LNClient

    A simple lightning network client to interact with your lightning wallet

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    nwcClient: NWCClient

    Methods

    • Make a payment

      Parameters

      • recipient: string

        a BOLT-11 invoice or lightning address

      • Optionalamount: Amount

        the amount to pay, only required if paying to a lightning address or the amount is not specified in the BOLT 11 invoice.

      • Optionalargs: Omit<Nip47PayInvoiceRequest, "invoice" | "amount">

        additional options, e.g. to store metadata on the payment

      Returns Promise<{ fees_paid: number; invoice: Invoice; preimage: string }>

      the receipt of the payment, and details of the paid invoice.