简体   繁体   English

获取 Solana Metaplex 糖果机配置数据

[英]Getting Solana Metaplex Candy Machine Config Data

I have been looking for the best way to find mainnet config data given a Candy Machine ID.我一直在寻找在给定 Candy Machine ID 的情况下查找主网配置数据的最佳方法。 This config data would consist of mint price, supply, items available, and go live date.此配置数据将包括铸币厂价格、供应、可用物品和上线日期。 I have seen some webapps display this kind of data to a front end but I can't remember which webapp it was.我见过一些 webapp 向前端显示这种数据,但我不记得它是哪个 webapp。

After searching, it seems like I will need to do some sort of web3 RPC magic.搜索后,似乎我需要做一些 web3 RPC 魔术。

The easiest way to do it is using project-serum anchor with the CandyMachineIDL (you can fetch it using this ).最简单的方法是使用带有 CandyMachineIDL 的项目血清锚(您可以使用this获取它)。 Then you just have to use the fetch function over the CandyMachine Account, in order to have an already decoded data of the CandyMachine state (check that the data that you wanna look is inside candyMachine.data ).然后你只需要在 CandyMachine 帐户上使用fetch 函数,以获得已经解码的CandyMachine 状态数据(检查你想要查看的数据是否在candyMachine.data )。

Here is a really good example! 这是一个非常好的例子!

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

相关问题 获取由糖果机铸造的 SPL 代币,以便对元数据 Metaplex Solana 进行签名 - Get SPL tokens minted by candy machine in order to sign the meta data Metaplex Solana 在 Solana devnet Metaplex v1.2.0 candy-machine-ui 上铸造 NFT 时收到错误 - Receiving error when minting NFT on Solana devnet Metaplex v1.2.0 candy-machine-ui Metaplex 糖果机 2 无限销售 - Metaplex candy machine 2 unlimited sale Metaplex糖果机的scope是什么 - What is the scope of Metaplex's Candy Machine VSC - 无法建造糖果机/Metaplex - VSC - Can't Build Candy Machine/Metaplex 转移通过 Metaplex(糖果机)铸造的 NFT - Transfer NFT minted via Metaplex(candy machine) 使用 metaplex 创建糖果机时如何解决此错误? - How do I fix this error when creating a candy machine with metaplex? 如何在不使用 Metaplex JS SDK 的情况下获得 Metaplex Candy Machine 的所有 NFT? - How to get all the NFTs for Metaplex Candy Machine without using the Metaplex JS SDK? Solana 糖果机 TypeError:无法读取未定义的属性(读取 '_bn') - Solana Candy machine TypeError: Cannot read properties of undefined (reading '_bn') solana 糖果机 - 是否可以知道用户是否在交易中点击批准 - solana candy machine - is it possible to know if user click approve in transaction
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM