SparkWallet.
Method Signature
Parameters
The BOLT11-encoded Lightning invoice to pay
Maximum fee in satoshis to pay for the invoice
When
true, initiate a Spark transfer if a valid Spark address is found in the invoice (default: false)Amount in satoshis to send for zero-amount invoices
Returns
The Lightning payment request details
The payment preimage is not returned immediately. To retrieve the preimage after payment completes, call
getLightningSendRequest(id) with the returned request ID.