Gets the status of a Lightning send request for the SparkWallet.
Method Signature
async getLightningSendRequest(id: string): Promise<LightningSendRequest | null>
Parameters
The ID of the Lightning send request to check
Returns
request
LightningSendRequest | null
required
The Lightning send request details or null if not found
Example
const sendRequest = await wallet.getLightningSendRequest("request-id");
if (sendRequest) {
console.log("Payment status:", sendRequest.status);
}