> ## Documentation Index
> Fetch the complete documentation index at: https://docs.spark.money/llms.txt
> Use this file to discover all available pages before exploring further.

# getCoopExitRequest

> Get the status of a withdrawal request by ID.

Gets a cooperative exit request by ID for the `SparkWallet`.

## Method Signature

```typescript theme={null}
async getCoopExitRequest(id: string): Promise<CoopExitRequest | null>
```

## Parameters

<ResponseField name="id" type="string" required>
  The withdrawal request ID returned by `withdraw()`. **Not the on-chain transaction ID.**

  Format: `SparkCoopExitRequest:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx`
</ResponseField>

## Returns

<ResponseField name="request" type="CoopExitRequest | null" required>
  The cooperative exit request details or null if not found
</ResponseField>

<Info>
  The `transfer` field in the response will be empty until the SSP has claimed the inbound Spark transfer. Poll until populated if you need the on-chain transaction details.
</Info>

## Example

```typescript theme={null}
// Use the ID returned from withdraw(), not the on-chain txid
const exitRequest = await wallet.getCoopExitRequest(withdrawal.id);
if (exitRequest) {
  console.log("Status:", exitRequest.status);
  console.log("On-chain txid:", exitRequest.coopExitTxid);
}
```
