Create a new LNClient
credentials to connect to a NWC-based wallet. This can be a NWC connection string e.g. nostr+walletconnect://... or an existing NWC Client. Learn more at https://nwc.dev
Make a payment
a BOLT-11 invoice or lightning address
Optional
amount: Amountthe amount to pay, only required if paying to a lightning address or the amount is not specified in the BOLT 11 invoice.
Optional
args: Omit<Nip47PayInvoiceRequest, "invoice" | "amount">additional options, e.g. to store metadata on the payment
the receipt of the payment, and details of the paid invoice.
Request to receive a payment
the amount requested, either in sats (e.g. {satoshi: 21}) or fiat (e.g. new FiatAmount(21, "USD")).
Optional
args: Omit<Nip47MakeInvoiceRequest, "amount">additional options, e.g. to set a description on the payment request, or store metadata for the received payment
the invoice to be paid, along with methods to easily listen for a payment and act upon it.
A simple lightning network client to interact with your lightning wallet