Could someone please help me to update this code, so that I can use the cursor function and return all the nft’s and their metadata in this contract?
Thank you so much!
const Moralis = require(“moralis”).default;
const { EvmChain } = require("@moralisweb3/common-evm-utils");
const runApp = async () => {
await Moralis.start({
apiKey: ‘YOUR_API_KEY’,
// …and any other configuration
});
const address = “0x86599B800E23036D761f43D7516092447295659f”;
const chain = EvmChain.ETHEREUM;
const response = await Moralis.EvmApi.nft.getContractNFTs({
address,
chain,
});
console.log(response.toJSON());
}
runApp();