NFT minter Smart Contract
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.
init
endpoint. Check the description and link to the code in the endpoints section. It is simpler if you are using the Elven Tools CLI.issueCollection
endpoint. With CLI, it is simpler to do that. Again, check it in the endpoints section.setLocalRoles
endpoint - it is required to set up proper roles for the collection token.startMinting
endpoint. 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.
Please post issues and ideas here.