# Whitelist for External Tokens

#### Created your token on CoinMaker? Visit this Guide [whitelist-for-coinmaker-tokens](https://docs.autonomous.finance/products/platforms/coinmaker/whitelist-for-coinmaker-tokens "mention")

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 %}
