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

# Timelock

> Configure and manage vault update timelocks

The `timelock` sub-client manages timelock configuration for vaults. Timelocks add a mandatory delay between proposing and applying vault configuration changes, providing protection against unauthorized or hasty modifications.

For conceptual details, see [Timelock](/v1/operations/timelock).

## Set Timelock Duration

Configure the timelock duration in seconds. Once set, any subsequent vault state or mint updates will require waiting for this duration before they can be applied:

```typescript theme={null}
import { GlamClient } from "@glamsystems/glam-sdk";

const glamClient = new GlamClient();

// Set a 24-hour timelock (86400 seconds)
const txSig = await glamClient.timelock.set(86400);
```

## Apply Timelock

After the timelock duration has elapsed, apply the pending changes:

```typescript theme={null}
const txSig = await glamClient.timelock.apply();
```

The `apply` method automatically detects the vault type:

* For **Vault** types, it applies state timelock changes
* For **TokenizedVault** types, it applies mint timelock changes

## Cancel Timelock

Cancel pending timelock changes before they are applied:

```typescript theme={null}
const txSig = await glamClient.timelock.cancel();
```
