> For the complete documentation index, see [llms.txt](https://support.highlight.xyz/knowledge-base/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.highlight.xyz/knowledge-base/for-developers/minting-protocol/referral-manager.md).

# Referral Manager

Highlight offers a contract called `ReferralManager`, which acts as a proxy for our [MintManager](/knowledge-base/for-developers/minting-protocol/mint-managers.md). By executing mints through this contract, you can capitalize on [referral rewards](/knowledge-base/for-developers/protocol-rewards/mint-referral-rewards.md), earning 10% of [Highlight's mint fee](/knowledge-base/for-creators/about-highlight/highlight-fees.md).&#x20;

On the `ReferralManager`, `vectorMint721WithReferral`, `gatedNumMint721WithReferral` and `gatedChooseMint721WithReferral` are the three methods supported, which essentially means that referrals are supported for all fixed price sales and private dutch auctions on Highlight.

`vectorMint721WithReferral` is used for mints on public sales, where you can pretty easily construct the arguments yourself.&#x20;

The `gatedNumMint721WithReferral` and `gatedChooseMint721WithReferral` methods require an EIP712 based signature, and are used for [gated mints](/knowledge-base/for-creators/selling-your-nfts/setting-up-gates-allowlists.md) and [collector’s choice series](/knowledge-base/for-creators/project-quick-start-guides/launch-a-collectors-choice-project.md) mints. You can construct these arguments by hitting our API. In fact, you can construct mint args for every referral-supported mint using our API if you wanted to, with the following schema and endpoint:

```
API url: https://api.highlight.xyz:8080/

Graphql query: 

mutation ClaimMintTo($data: MintClaimInput!, $vectorId: String!) {
  claimMintTo(data: $data, vectorId: $vectorId) {
    contract {
      chainId
      address
      args
      method
      value
      gasLimit
    }
  }
}

where MintClaimInput = {
  numTokensToMint: number;
  referrer?: string; // here's where you'd pass the referrer address
  mintData?: string; // you can ignore this field
}
```

***

Review the ReferralManager contract on Github:

{% embed url="<https://github.com/highlightxyz/hl-evm-contracts/blob/main/contracts/mint/referrals/ReferralManager.sol>" %}

See the [NFT contracts](/knowledge-base/for-developers/nft-contracts.md) page to find the ReferralManager on each chain.


---

# 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, and the optional `goal` query parameter:

```
GET https://support.highlight.xyz/knowledge-base/for-developers/minting-protocol/referral-manager.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
