Hello there, Iām building a test app around a use case that Iām having difficulties in laying down.
Basically Iād like to create an NFT that can be personalised during the minting process from the user itself.
Letās say that I create a collection of ERC721A tokens. In the page where the minting button will be you can select an option, letās say ācolorā. So you have a dropdown menu with some colors, and after selecting your preferred colour for every NFT you click mint and I personalised the background of the NFT minted with the color of your choice.
Now, I was thinking about passing the value of the color to the mint
function. But for what I understand can increase the gas price a lot (if you want to mint 100 NFTs you need to specify 100 colors as well), can anyone confirm?
Also what if I donāt want to pass just a color but a long string? Itās gonna be super expensiveā¦
The other thing that I thought was: when the user clicks mint, it actually calls a back-end. The server receives all the information about the colors, then it proceeds to mint for you, when the minting is done I receive back the ID of the NFT and with the id and the colors I call pinata api to update the metadata with the specified colors. The problem in this case is I donāt know how to make the back-end mint for a user.
Whatās the best way to get this done?