Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Estimate the fee for paying a Lightning invoice.
SparkWallet
interface LightningSendFeeEstimateInput { encodedInvoice: string; amountSats?: number; } async getLightningSendFeeEstimate(params: LightningSendFeeEstimateInput): Promise<number>
const feeEstimate = await wallet.getLightningSendFeeEstimate({ encodedInvoice: "lnbc..." }); console.log("Estimated fee:", feeEstimate, "sats");