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