Gets a cooperative exit request by ID for the SparkWallet.
Method Signature
async getCoopExitRequest(id: string): Promise<CoopExitRequest | null>
Parameters
The ID of the cooperative exit request
Returns
request
CoopExitRequest | null
required
The cooperative exit request details or null if not found
Example
const exitRequest = await wallet.getCoopExitRequest("request-id");
if (exitRequest) {
console.log("Exit request details:", exitRequest);
}