webln.sendPayment()
async function sendPayment(paymentRequest: string): SendPaymentResponse;Parameters
paymentRequest: string // the invoice you'd like the user to pay (lnbc...)Response
interface SendPaymentResponse {
preimage: string;
}Example
const invoice = "lnbc100...";
const result = await window.webln.sendPayment(invoice);Demo
Last updated
Was this helpful?