SparkWallet.
Method Signature
Parameters
string
required
The ID of the invoice to check
Returns
LightningReceiveRequest | null
required
The Lightning receive request details, or
null if not found or not accessible. Only the requester or receiver can query it; a wallet-history viewer grant does not grant access to the receive request. transfer may be absent while the request is still progressing.createLightningInvoice(). Use request.transfer?.sparkId to join to Spark transfer history, and request.invoice.paymentHash for the Lightning payment. See payment correlation and units.