将NFT添加到Solana上的收集

发布于 2025-02-09 13:59:01 字数 859 浏览 3 评论 0 原文

我正在尝试将现有的Solana上的NFT添加到Metaplex认证的系列中,但由于API的记录并不十分记录。

我可以肯定的是,以下是我需要使用的电话。基于我可以从此处推断出的文档 https:// docs。 metaplex.com/programs/token-metadata/changelog/v1.1

对象中的几个项目尚不清楚,这是具有类型的代码:

    let tx = new Transaction().add(
      createVerifyCollectionInstruction({
        metadata: web3.PublicKey,            (?)
        collectionAuthority: web3.PublicKey, (?)
        payer: wallet.PublicKey,             (obvious)
        collectionMint: web3.PublicKey,      (nft to be added)
        collection: web3.PublicKey,          (collection public key)
        collectionMasterEditionAccount: web3.PublicKey,   (?)
      }),
    );

我对这里要发生的事情有一些了解,但仍然模糊其他情况,有人可以分解每个参数吗?感谢您的任何见解!

I'm trying to add an existing NFT on solana to a metaplex certified collection but a little stumped as the API isn't that well documented.

I'm fairly certain this call below is what i need to use. Based on what I can infer from the docs here https://docs.metaplex.com/programs/token-metadata/changelog/v1.1.

Several of of the items in the object are unclear, here's the code with the types:

    let tx = new Transaction().add(
      createVerifyCollectionInstruction({
        metadata: web3.PublicKey,            (?)
        collectionAuthority: web3.PublicKey, (?)
        payer: wallet.PublicKey,             (obvious)
        collectionMint: web3.PublicKey,      (nft to be added)
        collection: web3.PublicKey,          (collection public key)
        collectionMasterEditionAccount: web3.PublicKey,   (?)
      }),
    );

I have some idea of whats got to happen here but still fuzzy on others, could someone breakdown each of these params? Thanks for any insight!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

终难遇 2025-02-16 13:59:02

You should use SetAndVerifyCollection instruction to set and verify the collection, both:

metadata :每个NFT都有链和链元数据,并且该属性指向存储给定NFT的链链元数据的帐户。您可以在此处阅读有关此帐户的更多信息: https://docs.metaplex.com /program/token-metadata/accounter#metadata

收集授权:指收集的更新权限。如果您使用铸造该系列的糖果机的权限,则是它所指的。您可以在此处阅读有关帐户的更多信息:

collection> Collection MasterEdition帐户:如果您使用MASTEREDITION来铸造版本,则需要指定此内容(选修的)。可以在此处阅读有关此帐户的更多信息: https://docs.metaplex。 com/program/doken-metadata/accounts#master-edition

You should use SetAndVerifyCollection instruction to set and verify the collection, both: https://docs.metaplex.com/programs/token-metadata/instructions#set-and-verify-the-collection

Metadata: Every NFT has on-chain and off-chain metadata, and this attribute points to the account that stores the on-chain metadata of the given NFT. You can read more about this account here: https://docs.metaplex.com/programs/token-metadata/accounts#metadata

Collection Authority: Refers to the collection's update authority. If you have the authority of the candy machine using which you minted the collection, this is what it refers to. You can read more about the account here: https://docs.metaplex.com/programs/token-metadata/accounts#collection-authority-record

Collection MasterEdition Account: If you used a MasterEdition to mint out editions, you will need to specify this (optional). Can read more about this account here: https://docs.metaplex.com/programs/token-metadata/accounts#master-edition

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