简体   繁体   中英

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

After searching, it seems like I will need to do some sort of web3 RPC magic.

The easiest way to do it is using project-serum anchor with the CandyMachineIDL (you can fetch it using 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 ).

Here is a really good example!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM