检查合同上给定的NFT ID是否已铸造
NFT合同是在ERC-721上使用的,
我们需要最简单的方法来检查NFT Collection的令牌ID是否到目前为止是铸造的。无论是否被铸造并转移了几次。
只是铸造,真
或仍然没有铸造,错误,
谢谢
NFT contract is on ERC-721
we need the most simple way to check if Token ID from NFT collection is minted so far or not. no matter if it is minted and transferred several times.
just if minted , true
or still not minted, false
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
erc-721 标准标准定义了
holderof()
函数,将令牌ID作为输入参数。它要么返回NFT持有人的地址,要么如果不存在令牌ID(即分配给地址零)。
The ERC-721 standard defines the
ownerOf()
function, accepting the token ID as an input param.It either returns address of the NFT holder, or throws if the token ID does not exist (i.e. is assigned to address zero).