Custom ERC-20
Learn how to add and accept your own custom ERC-20 token as a form of payment for your NFTs.
Last updated
Learn how to add and accept your own custom ERC-20 token as a form of payment for your NFTs.
Last updated
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.
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 in NiftyKit
Navigate to the app tab
Click on [Add] in ERC-20 to install.
Ensure that your custom ERC-20 token exists on the Ethereum network where your NFT collection is deployed.
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
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
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.
Click edit and check your custom ERC-20 token is now listed.
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.
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)