# Custom ERC-20

Before starting your sale in your collection, you must install the ERC-20 app to your collection and add the custom token to your contract.

### **Step 1: Install the ERC-20 App**

Make sure you have installed the ERC-20 app to your collection before proceeding to the next step. To install:

* [Go to your collection dashboard](https://app.niftykit.com/dashboard?tab=collections) in NiftyKit
* Navigate to the app tab
* **Click on \[Add] in ERC-20 to install.**

<figure><img src="/files/uSkkZkF7zeRSev0Eeas5" alt="" width="375"><figcaption><p>Apps you can install with your Diamond Contract in NiftyKit</p></figcaption></figure>

### **Step 2: Verify Token Existence**

Ensure that your **custom ERC-20 token exists on the Ethereum network** where your NFT collection is deployed.

### **Step 3: Access your Contract via** [**louper.dev**](https://louper.dev/)

Go to[ louper.dev](https://louper.dev/), the platform where you can configure the Smart Contract of your NFT Collection. Access our contract by searching your contract address

<figure><img src="/files/K7a8EA2ZYA6A0yoymMe7" alt="" width="563"><figcaption><p>Searching Your Contract in louper.dev</p></figcaption></figure>

### **Step 4: Add the Custom ERC-20 Token**

Within louper.dev, you need to:

* Navigate to the "Write" function, find the option named `"erc20SetActiveToken."`
* Enter the `tokenAddress` of your custom ERC-20 token into this field. This specifies which token will be accepted as payment for NFTs in your collection.
* "Execute" to confirm the transaction.

{% hint style="info" %}
Make sure the wallet connected is the collection owner and the token exists on the network
{% endhint %}

<figure><img src="/files/jMlqF5HvdetGvj4ZUDkD" alt=""><figcaption><p>Adding custom ERC-20 token in your contract via louper</p></figcaption></figure>

### **Step 5: Refresh the Collection Dashboard**

* After you've entered the custom token's address in louper, [go back to your collection dashboard](https://app.niftykit.com/login) and refresh the page. Once it's properly added a "CUSTOM" active token  will show under your overview dashboard.

<figure><img src="/files/XCqJ8l2m0qczHn9Vyt65" alt=""><figcaption><p>Custom Token added to your collection dashboard</p></figcaption></figure>

### **Step 6: Verify Custom Token**

Click edit and check your custom ERC-20 token is now listed.

### **Step 7: Adjust Sale Settings**

You can activate the sale of your NFTs via the \[Prepare Drop Button]. You will still have the option to use either the base token (e.g., ETH) or an app token (e.g., apeCoin) according to your preferences

{% hint style="danger" %}
If you want to switch from one token to another while the sale is active, collectors may encounter errors when trying to mint NFTs. In such cases, you should "Stop Sale" and then restart your sale with the newly selected ERC-20 token.
{% endhint %}

<figure><img src="/files/jetG9CQgSDQQntA8qRLt" alt=""><figcaption><p>Starting your Pre-sale or Public Sale</p></figcaption></figure>

<figure><img src="/files/5OoAOls0YL41r6eHJm0v" alt="" width="375"><figcaption><p>Choosing your Custom ERC-20 Token to accept as payment for your NFT Sales</p></figcaption></figure>

&#x20;**Note on USD Conversion**

Please note that custom tokens may not display a USD conversion in the user interface for the Drop Sale (start sale) dialog or the Mint Checkout dialog.&#x20;

The default will be to show the Tokens Total + Mint Fee ($USD Total)

<figure><img src="/files/2ptqHFelIjMsaOgD0nb9" alt=""><figcaption></figcaption></figure>


---

# 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.niftykit.com/customize-your-experience/available-apps/accept-erc-20/custom-erc-20.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.
