# lockDuration()

### Function lockDuration()

{% code title="PendingWithdrawals.sol" %}

```javascript
function lockDuration() external view returns (uint32)
```

{% endcode %}

This function is used to get the length of the cooldown period for withdrawals.&#x20;

{% hint style="info" %}
Once a withdrawal has been initiated, the cooldown period begins. The length of the cooldown period can be acquired by calling this function.&#x20;

The initial length of the lock duration is 604800 seconds, equal to 7 days. However, this can be adjusted by a vote from the DAO.&#x20;
{% endhint %}

### Return Variables

This function returns the length of the withdrawal cooldown period, in seconds.&#x20;

| Variable Type | Returns                                                                                                                                    |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| uint32        | <p>The number returned represents the cooldown period, in seconds, for withdrawals. <br><br>For example:<br><code>604800 uint32</code></p> |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.bancor.network/developer-guides/read-functions/withdrawals/lockduration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
