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

Method Signature

Parameters

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

Returns

number
required
The estimated fee in satoshis

Example