Predict erc1155 token id

Hello all,
I’m getting crazy in trying to understand if the token id to be minted can be predicted or not. I’m referring to this contract 0x826653486E2C74711a933B7D9331B34c16bC0C4F

Can you please help me?

Thank you very much

It depends how the contract code is built, its up to the contract created how he handles the new minted id, it can be random or just mint a selected token id.

From what I see, this contract has a function called _mintRandom where it mints a random token id, probably between 1 and 2

Thanks! Actually there are 5 possible token ids: 0, 1, 2, 3, 4. I saw that line of code, but I was wondering how the function is built and if the is can be predicted

In this case it looks like it cannot be predicted, that function generates a random id then it mints that id

Thus I can’t mine a specific I’d, but I should rather try many times to mint the one that I want? Or rely on lucky of course

You can try multiple times of course, but keep in mint, since its a random number it can give you the same ids multiple times until you mint the one you want

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.