Solana:获得NFT供应帽?
我怎么能确定将不再铸造一个令牌?
在本教程中,我们可以看到指定的 maxSupply
。如何检索此值给出薄荷地址?
https://solanacookbook.com/references/nfts.html#mint-the- nft
await actions.mintNFT({
connection,
wallet: new NodeWallet(keypair),
uri: 'https://34c7ef24f4v2aejh75xhxy5z6ars4xv47gpsdrei6fiowptk2nqq.arweave.net/3wXyF1wvK6ARJ_9ue-O58CMuXrz5nyHEiPFQ6z5q02E',
maxSupply: 1
});
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相信下一步将是以下 - >
SetAuthority函数将撤销Minting特权,并确保您无法创建此类其他标记。请注意,这一动作无法撤消。
资源: https:// www。 quicknode.com/guides/web3-sdks/how-to-mint-an-nft-on-solana
,,,,
I believe the next step would be the following ->
The setAuthority function will revoke minting privileges and ensure that you can not create additional tokens of this type. Note that this action cannot be undone.
resource: https://www.quicknode.com/guides/web3-sdks/how-to-mint-an-nft-on-solana
,
https://spl.solana.com/token#:~:text=ThawAccount%20instruction.%20The-,SetAuthority%20instruction,-can%20be%20used