# How to Lock?

## Video Guide&#x20;

{% embed url="<https://www.youtube.com/watch?v=BJFTuk1rA7A>" %}

## Step by Step Guide&#x20;

1. Visit <https://gov.dfx.finance/lock>

<figure><img src="/files/h4JcPlLAzSSGxbag0N16" alt=""><figcaption><p>Example of DFX locker page</p></figcaption></figure>

2\. Connect your wallet by either using MetaMask, WalletConnect, Gnosis Safe or Coinbase Wallet.

**`Note:`** The Coinbase Wallet option is only accessible via mobile device.

<figure><img src="/files/LU583rAOd9PjrPAb0DwT" alt=""><figcaption><p>Example of connecting wallet on desktop</p></figcaption></figure>

Once your wallet is connected, you will then be able to fully interact with the DFX locker for approving and locking.\
\
`Note:` You can interact with the DFX locker without your wallet being connected but you cant perform any on-chain actions without connecting.

3\. Enter the amount of DFX you would like to lock and select the duration of the lock.&#x20;

<div align="center"><figure><img src="/files/1m4Ys8hysfLmU5ddxUjL" alt=""><figcaption><p>Example using 5 DFX with a 4 year lock.</p></figcaption></figure></div>

4\. Once you have chosen the amount of DFX you would like to lock and the duration of lock time, you will then be able to preform the two transactions.

* One transaction for approving the DFX to be locked.
* Second transaction for actually locking the DFX.

&#x20;          🎉`Congratulations, you have successfully locked your DFX for veDFX!`🎉

`Note:` If you would like to learn more about locking scale, please check out the lock details link right here - <https://docs.dfx.finance/products/vedfx/lock-details#formula>


---

# 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.dfx.finance/dfx-finance/protocol/education-zone/how-to-lock.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.
