NFT minter Smart Contract v1
You are reading about the Smart Contract designed for the MultiversX blockchain. Its primary purpose is to provide a simple logic for minting and buying NFT tokens from a previously configured collection. It does it in a randomized way.
The smart contract works like a candy machine. In short, the user can pay in EGLD and, in return, will get randomly minted tokens from the previously configured collection. The amount of tokens per address is configured on the smart contract.
All are mandatory operations and should be done only once. Make the transactions in this order.
initendpoint. Check the description and link to the code in the endpoints section. It is simpler if you are using the Elven Tools CLI.
issueCollectionendpoint. With CLI, it is simpler to do that. Again, check it in the endpoints section.
setLocalRolesendpoint - it is required to set up proper roles for the collection token.
startMintingendpoint. By default, in the beginning, the minting is paused.
Remember that everything is more straightforward with the Elven Tools CLI Check the jump start section.
The best way of using it will be with Elven Tools CLI tool. It has a lot of valuable functions integrated with the smart contract, so deploying or interacting is simple. You can deploy the smart contract directly from its repository. Almost no coding skills are required in this case.
You can also take a more standard path and use mxpy for that. Mxpy CLI is an official CLI SDK for MultiversX blockchain based on Python. For more information, check the blog post.
Please post issues and ideas here.