Retrieve Anchor Data from a Candy Machine using the JS library

SolanaSolana
$49.43
‑9.22%
self.solana5d ago
Hi, Im writing a program using the solana/web.js library and I want to get the data from a given CandyMachine id account. I saw that on Solana Explorer there is a part called "Anchor Data" where there is exactly what I want (data about the CandyMachine) but I don't know how to retrieve that data using the library. Does someone know how to ? ​ Link & Picture for example : [https://explorer.solana.com/address/BkR46HicWegpqrbEp5ZFc9GvEiKNqJGnWZEixwBTMbTn/anchor-account?cluster=devnet](https://explorer.solana.com/address/BkR46HicWegpqrbEp5ZFc9GvEiKNqJGnWZEixwBTMbTn/anchor-account?cluster=devnet) https://preview.redd.it/l87qa20njiz81.png?width=1461&format=png&auto=webp&s=72cd43230b810eabb3f871577e7f275c8df02db2 Thanks to the SOL community :)