I’ve been playing around with MultiversX blockchain and managed to set up an NFT collection. Now I want to cap the number of NFTs that can be minted for this collection. The docs mention removing the creation role to stop new NFTs, but that means making all the NFTs upfront. Not ideal!
-
Is there a better way to set a max supply when I first create the collection?
-
Also, I’m confused about the differences between EGLD, ESDT, SFT, and NFT. Especially SFTs - how does the switch from fungible to non-fungible work? Can they go back to being fungible? The docs aren’t very clear on this.
Any help would be awesome. I’m still learning the ropes here!
hey zoe, for max supply u can use the ‘canFreeze’ attribute when creating the collection. it lets u freeze minting at any time. as for SFTs, they’re kinda like a hybrid. they start fungible but can be made unique later. not sure bout going back tho. hope this helps!
Regarding your first question, setting a maximum limit for NFTs in a MultiversX collection can indeed be achieved without minting all NFTs upfront. One effective method is to implement a smart contract that tracks the number of minted NFTs and enforces the limit during the minting process. This approach allows for on-demand minting while maintaining a cap.
As for the distinctions between EGLD, ESDT, SFT, and NFT, they serve different purposes within the MultiversX ecosystem. EGLD is the native cryptocurrency, while ESDT represents fungible tokens. NFTs are unique tokens, and SFTs (Semi-Fungible Tokens) offer a middle ground. SFTs can start as fungible and later become non-fungible through a process called ‘NFT-ization’, but this transformation is typically one-way. The flexibility of SFTs makes them suitable for various use cases, such as limited edition items or tiered membership systems.