I'm just getting into Solidity by building a first project around collectibles, ERC 721.

There's for example 1500 different collectibles, each has an available amount defined by a criteria. These collectibles will be distributed in packs of 5, totally randomly after an initial purchase. These collectibles will be generated from a database that has properties like "name", "image", "id", etc

How would one go about generating 1500 * availability tokens (amounting to a total of 150000 tokens)? Pass an array of ids to a function called only once from a specific private address and generate them and store them in a mapping storage? I'm anticipating this will require a lot of gas, how could I evaluate the costs of creating such a large number of tokens?

  • Will you do all 150,000 in one series? Or will you have multiple series? It makes a difference in the type of solution that will be appropriate. – William Entriken Sep 19 '18 at 15:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.