decodeInvoice

fun decodeInvoice(encodedInvoice: String): InvoiceData

Decode a lightning invoice to get its details included payment amount, destination, etc.

Return

The decoded invoice details.

Parameters

encodedInvoice

An encoded string representation of the invoice to decode.