I will create a public mint page that allows users to mint tokens whenever they want. I would like to mint tokens sequentially without having to pass the token ID by simply calling the mint function. However, if multiple users try to mint tokens at the same time, I will need to add a lock to prevent them from using the same token ID. Is there an easy way to accomplish this without having to create a separate service to manage the token IDs?
Hi @faber ,
Because setting the asset id is the responsibility of the collection owner at the moment there is no out of the box way to automate this. Minting requires private key access, you are likely to abstract this from the user anyway, you will need some sort of a sequencing mechanism built into your minting workflow to make this work for anyone at any time. Hope this helps.