> For the complete documentation index, see [llms.txt](https://0xshiven.gitbook.io/guardian-smart-wallet-contracts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://0xshiven.gitbook.io/guardian-smart-wallet-contracts/overview/our-features/social-account-locking.md).

# Social Account Locking

Account locking can be used to freeze your smart wallet assets i.e. not allowing any withdrawal/transaction to go through. This can be useful in case of an emergency like losing access to your wallet or generally safeguarding your assets when not putting them to use for the long term, etc, by locking them.&#x20;

With smart wallets, one can use a few trusted parties, known as Guardians, to lock or unlock their smart wallet accounts.&#x20;

### How it works

1. **Assigning Guardians:** The user assigns guardians for their smart accounts. Generally, 3 or more guardians are a good number.
2. **Lock request creation:** When needed, an assigned guardian can create a Lock Request for the user's smart account.
3. **Achieving consensus:** A consensus has to be achieved on the generated lock request by guardians signing the request from their respective Guardian portal.&#x20;
4. Once the consensus is achieved, the wallet is locked, stopping any transactions from being executed, unless unlocked.&#x20;
5. **Unlock Request:** To unlock, an unlock request can be initiated by a guardian in the same way and consensus has to be achieved on the unlock request as well to unlock the smart account and resume its transactions.
6. **Guardian Portal:** Guardians can access the lock/unlock requests on the Guardian interface and sign the requests there.
7. **Consensus Evaluation:** Once all guardian signatures have been received, an assigned guardian can trigger the account lock consensus evaluation, which will evaluate all lock/unlock request signatures and lock/unlock the user's account if the consensus has been achieved.

#### [Get started with integrating Social Account Locking in your dApp!](/guardian-smart-wallet-contracts/guides/account-lock.md)

{% content-ref url="/pages/0AYTzjH2nHw6SX8kh3Yn" %}
[Social Account Recovery](/guardian-smart-wallet-contracts/overview/our-features/social-account-recovery.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://0xshiven.gitbook.io/guardian-smart-wallet-contracts/overview/our-features/social-account-locking.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.
