> ## 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.

# isTokenOptimizationInProgress

> Check if token output optimization is currently running.

Checks if a token output optimization operation is currently in progress.

## Method Signature

```typescript theme={null}
async isTokenOptimizationInProgress(): Promise<boolean>
```

## Returns

<ResponseField name="inProgress" type="boolean" required>
  `true` if token optimization is running, `false` otherwise
</ResponseField>

## Example

```typescript theme={null}
if (await wallet.isTokenOptimizationInProgress()) {
  console.log("Token optimization is running...");
} else {
  console.log("No token optimization in progress");
}
```
