webUPI.requestLightningInvoice()
Method
async function requestLightningInvoice(args: RequestLightningInvoiceArgs): RequestLightningInvoiceResponse;
Parameters
interface RequestLightningInvoiceArgs {
amountSats?: number; // Optional: The amount to be paid in satoshis
amountInr?: number; // Optional: The amount to be paid in INR
requestQuote?: boolean; // Optional: Whether to request a price quote in INR
}
Response
interface RequestLightningInvoiceResponse {
invoice: string; // The BOLT-11 invoice for the Lightning Network payment
quote?: number; // Optional: The price quote in INR, if requested
}
Code Example
Last updated