Go to louper.dev, the platform where you can configure the Smart Contract of your NFT Collection. Access our contract by searching your contract address
Searching Your Contract in louper.dev
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.
Make sure the wallet connected is the collection owner and the token exists on the network
Adding custom ERC-20 token in your contract via louper
Step 5: Refresh the Collection Dashboard
After you've entered the custom token's address in louper, go back to your collection dashboard and refresh the page. Once it's properly added a "CUSTOM" active token will show under your overview dashboard.
Custom Token added to your collection dashboard
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
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.
Starting your Pre-sale or Public Sale
Choosing your Custom ERC-20 Token to accept as payment for your NFT Sales
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.
The default will be to show the Tokens Total + Mint Fee ($USD Total)