Solana:获得NFT供应帽?

发布于 2025-01-27 05:34:09 字数 512 浏览 4 评论 0 原文

我怎么能确定将不再铸造一个令牌?

在本教程中,我们可以看到指定的 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
  });

How can I be sure a token will not be minted anymore?

In this tutorial we can see a maxSupply specified. How do I retrieve this value give a mint address?

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

少年亿悲伤 2025-02-03 05:34:09

我相信下一步将是以下 - >

await setAuthority(
  connection,
  fromWallet,            // Payer of the transaction fees
  mint,                  // Account 
  fromWallet.publicKey,  // Current authority 
  0,                     // Authority type: "0" represents Mint Tokens 
  null                   // Setting the new Authority to null
);

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 ->

await setAuthority(
  connection,
  fromWallet,            // Payer of the transaction fees
  mint,                  // Account 
  fromWallet.publicKey,  // Current authority 
  0,                     // Authority type: "0" represents Mint Tokens 
  null                   // Setting the new Authority to null
);

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文