> For the complete documentation index, see [llms.txt](https://docs.autonomous.finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.autonomous.finance/learn/user-guides/whitelist-for-external-tokens.md).

# Whitelist for External Tokens

#### Created your token on CoinMaker? Visit this Guide [Whitelist for CoinMaker Tokens](/products/platforms/coinmaker/whitelist-for-coinmaker-tokens.md)

Whitelisting allows you to restrict transfers only to approved addresses ideal for compliance, access control, or private token ecosystems. The Whitelist Module can be linked and controlled via ao.link, and actions can be triggered either manually or programmatically from another process.

To Manually install the Whitelist Module:

Run the following code in your token process to install the whitelist module.

<pre><code>Zd7vLelhAEU0EBEZ5yszRC1n3V9Win4U-7mcprtSZvs
<strong>// This address is a process that contains the code for the Whitelist Module
</strong></code></pre>

```lua
local result = ao.send({
    Target = "Zd7vLelhAEU0EBEZ5yszRC1n3V9Win4U-7mcprtSZvs",
    Action = "Install"
}).receive()
load(result.Data)()
```

## Whitelist Module Actions

🔗 GitHub Gist: <https://gist.github.com/micovi/113e538bb74996e779c1a2c826b1eabd>

### Enable Transfer Restrictions

```lua
{
  "process": "TOKEN_PROCESS",
  "data": "",
  "tags": [
    {
      "name": "Action",
      "value": "Set-Transfer-Restrictions"
    },
    {
      "name": "Enabled",
      "value": "true"
    }
  ]
}
```

### Disable Transfer Restrictions

```lua
{
  "process": "TOKEN_PROCESS",
  "data": "",
  "tags": [
    {
      "name": "Action",
      "value": "Set-Transfer-Restrictions"
    },
    {
      "name": "Enabled",
      "value": "false"
    }
  ]
}
```

### Add Allowed Sender

```lua
{
  "process": "TOKEN_PROCESS",
  "data": "",
  "tags": [
    {
      "name": "Action",
      "value": "Add-Allowed-Sender"
    },
    {
      "name": "Address",
      "value": "SENDER_ADDRESS"
    }
  ]
}
```

### Add Allowed Sender Batch

```lua
{
  "process": "TOKEN_PROCESS",
  "data": "",
  "tags": [
    {
      "name": "Action",
      "value": "Add-Allowed-Sender-Batch"
    },
    {
      "name": "Addresses",
      "value": ["SENDER_ADDRESS","SENDER_ADDRESS_2"]
    }
  ]
}
```

### Remove Allowed Sender

```lua
{
  "process": "TOKEN_PROCESS",
  "data": "",
  "tags": [
    {
      "name": "Action",
      "value": "Remove-Allowed-Sender"
    },
    {
      "name": "Address",
      "value": "SENDER_ADDRESS"
    }
  ]
}
```

### Get Allowed Senders

```lua
{
  "process": "TOKEN_PROCESS",
  "data": "",
  "tags": [
    {
      "name": "Action",
      "value": "Get-Allowed-Senders"
    }
  ]
}
```

{% hint style="info" %}
For questions and clarifications please open a support ticket in our official Discord server.
{% endhint %}


---

# 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://docs.autonomous.finance/learn/user-guides/whitelist-for-external-tokens.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.
