# 🔓How to Unstake TAN?

Learn how to safely and efficiently unstake TAN from the network, ensuring smooth transition and management of your staked assets.

## Unstake TAN

To remove your stake and free yourself from the validator node, initiate the unstaking process through the provided functionality on the TAN blockchain network. This process involves confirming the unstaking transaction to begin withdrawing your TAN tokens from the staking contract.

## How to Unstake TAN?

**Prerequisite:** Before proceeding with the staking contracts, ensure you have a fully synchronized full node running in the current blockchain state of TAN.

**Step 1: Clone the Repository from** [**GitHub**](https://github.com/0xPolygon/staking-contracts/tree/main)**.**

**Step 2: Open cloned repository in terminal and install dependencies navigate to the cloned `staking-contracts` directory from the `main` branch and run `npm i` to install dependencies.**

**Step 3:** To remove your stake and free yourself from the validator node, follow these command:

```
npm run unstake
```

Executing this command initiates the process to withdraw your TAN tokens from the staking contract. Monitor the blockchain for the completion of your unstaking request. Once finalized, your TAN tokens will be available for withdrawal into your wallet. This action releases your TAN from the staking.

## Conclusion

Unstaking TAN from the TAN network is a straightforward process that allows you to withdraw your stake from the validator node. By using the `npm run unstake` command, you initiate the unstaking transaction, freeing your TAN from the staking contract. Monitor the blockchain for confirmation, and once completed, withdraw your tokens into your wallet. This flexibility ensures you can manage your assets independently outside of the validator node, aligning with your evolving participation in the TAN blockchain network.


---

# 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.tan.live/getting-started/developer-guide/nodes-and-validators/how-to-unstake-tan.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.
