# Affiliate Token Gating

You can offer different rewards to different affiliates using token gating. For example, if someone holds a Bored Ape, you might give them a 50% affiliate reward, whereas the standard tier is a 20% reward. This works great for existing communities where you can reward your early holders with higher rewards.

Token gating works for both regular tokens (ERC20) and NFTs (ERC721).

To add token gating to your project go to the project *Settings* tab, and click *Add Group* in the *Token Gating* section.

You can also add affiliate groups behind a secret URL without the affiliate needing to hold any tokens. Anyone with the URL will be able to join the higher rewards tier.

<figure><img src="/files/zPfSdBnQFLPah6vNgVDu" alt=""><figcaption></figcaption></figure>

**Group Name:** a name for the affiliate group. For example, Llama Holders.

**Affiliate Reward:** the revenue share an affiliate in the group will earn.

**Token Address:** the address of the ERC20 or ERC721 token to gate the affiliate page. You can find the address of a token on [Etherscan](https://etherscan.io). The token address will start with *0x* and look something like *0x123abc123abc456...* This field is optiona&#x6C;*.* You can also create affiliate groups behind a secret URL where no token is required to gain access.

**Token Name:** the name of the token to display to users. For example, *Bored Ape Yacht Club*.

**Tokens Required:** how many tokens a holder must own to gain access. The default is one token.

**Custom Slug:** if set we will create a dedicated URL where token holders can sign up. They will also be able to sign up via the standard affiliate sign-up page and if we see they are holding tokens that enable higher rewards we will display a message to them to let them know.

**Custom Description:** a custom message on the dedicated page for this affiliate group. If no custom description is set then the default description for the project is used.


---

# 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.sharemint.xyz/fundamentals/affiliate-token-gating.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.
