Skip to main content
Estimates the fee for sending a Lightning payment via the SparkWallet.

Method Signature

Parameters

encodedInvoice
string
required
The BOLT11-encoded Lightning invoice
amountSats
number
Amount in satoshis to send (required for zero-amount invoices)

Returns

fee
number
required
The estimated fee in satoshis

Example