# archiveErc20Contract

### Description

This endpoint allows you to archive an ERC20 contract. When you archive an ERC20 contract, it will be removed from all API responses, rendering it inaccessible via any API calls. Furthermore, you cannot mint new tokens under the archived contract. All minted ERC20 tokens associated with the archived contract will also be archived and cannot be accessed via API calls. However, the ERC20 contract will remain on the blockchain.

{% code overflow="wrap" %}

```javascript
public archiveErc20Contract(chain: VyChain, contractAddress: string) : VyPromise<Any>
```

{% endcode %}

{% tabs %}
{% tab title="Details" %}
**Parameters**

| chain           | [VyChain](/sdk-reference/ts-js-v3/object-references/enum/vychain.md) | The blockchain of the token contract.               |
| --------------- | -------------------------------------------------------------------- | --------------------------------------------------- |
| contractAddress | string                                                               | The token contract address that you want to delete. |
| {% endtab %}    |                                                                      |                                                     |
| {% endtabs %}   |                                                                      |                                                     |


---

# 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://sdk.venly.io/sdk-reference/ts-js-v3/function-references/token/erc20-contract/archiveerc20contract.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.
