简体   繁体   English

如何限制 Elrond NFT 系列的最大供应量?

[英]How do I limit the max supply of an Elrond NFT collection?

I'm currently working with the Elrond blockchain, and I've successfully registered a new NFT collection & created an NFT following the documentation example here .我目前正在使用 Elrond 区块链,我已经成功注册了一个新的 NFT 集合并按照此处的文档示例创建了一个 NFT。

However, I need to limit the amount of NFTs that can be created for a specific collection.但是,我需要限制可以为特定集合创建的 NFT 数量。 The documentation says:文件说:

The ESDT manager can stop the creation of an NFT for the given ESDT forever by removing the only ESDTRoleNFTCreate role available. ESDT 管理器可以通过删除唯一可用的 ESDTRoleNFTCreate 角色来永远停止为给定的 ESDT 创建 NFT。

So I guess I could just create the max supply of a collection ( eg 100 NFTs for collection1) and then remove the creation role.所以我想我可以只创建一个集合的最大供应量( eg collection1 的 100 个 NFT),然后删除创建角色。 But this means I have to create all NFTs beforehand, which is not ideal.但这意味着我必须事先创建所有 NFT,这并不理想。

  1. Is there another way to limit the max supply, maybe when registering/issuing the collection itself?有没有另一种方法来限制最大供应量,也许是在注册/发行收藏品时?

  2. On a separate note, is there good documentation on the difference between EGLD / ESDT / SFT / NFT.另外,是否有关于 EGLD / ESDT / SFT / NFT 之间区别的良好文档。 I'm particularly interested in SFTs, but I don't understand how the state change from fungible -> non-fungible works ( eg once the SFT becomes non-fungible, is it stuck in that state or can it become fungible again?).我对 SFT 特别感兴趣,但我不明白 state 如何从可替代的变为不可替代的( eg ,一旦 SFT 变得不可替代,它会卡在 state 中还是可以再次变为可替代的?) . Documentation on that is quite unclear.关于这方面的文件还不清楚。

Thanks in advance for your help!在此先感谢您的帮助!

  1. There is no optionnal "limit supply" for an NFT collection. NFT 系列没有可选的“限制供应”。

After you created the collection and give the ESDTRoleNFTCreate to your adresse or a contract you can call X time the function mint创建集合并将 ESDTRoleNFTCreate 提供给您的地址或合同后,您可以调用 X 次 function mint

Eventually, if you use a SC to mint the NFT, you can set a variable to limit the maximum allowed mint.最终,如果你使用 SC 来铸造 NFT,你可以设置一个变量来限制允许的最大铸造量。

  1. You cant convert NFT in SFT or SFT in NFT The only operation allowed is converting an SFT into Meta-ESDT with no way back.您不能将 NFT 转换为 SFT,也不能将 SFT 转换为 NFT。唯一允许的操作是将 SFT 转换为 Meta-ESDT,且无法返回。 This is possible only because SFT are really close to META-ESDT but with no decimals:)这是可能的,因为 SFT 非常接近 META-ESDT 但没有小数:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM