getLightningFeeEstimateForInvoice

suspend fun getLightningFeeEstimateForInvoice(encodedPaymentRequest: String, amountMsats: Long? = null): CurrencyAmount

Gets an estimate of the fees that will be paid for a Lightning invoice.

Parameters

encodedPaymentRequest

The invoice you want to pay (as defined by the BOLT11 standard).

amountMsats

If the invoice does not specify a payment amount, then the amount that you wish to pay, expressed in msats.

Throws

If the user is not authenticated.