I have some functions to get NFTs for the contract using BSC testnet, it worked properly for the old contract(I deployed like a month ago). I deployed a new one, and all calls to it regarding NFT give no data
const nftList = await Moralis.Web3API.account.getNFTsForContract({
chain: chainId,
address: userAddress,
token_address: contractAddress,
});
if (nftList.result.length === 0) {
throw new Error("No items found");
}
return nftList.result;
Moreover, await Moralis.Web3API.token.getAllTokenIds(options) gives no results for newly deployed contract. I deployed a few contracts and hours are already gone. What should be done? How to trigger moralis to index contract? Maybe there is the first function to trigger it?
I tested it here also, and the same problem no NFT data for the new contract https://docs.moralis.io/reference/getalltokenids-1