Hi. What’s the best way to get info about some NFTs? Say, level or exp of a game character. I’m using a function on the contract that prints it, and using a fetch that POST to Moralis API and runs that function for every ID, something like this:
fetch('https://deep-index.moralis.io/api/v2/<contract>/function?chain=bsc%20testnet&function_name=getInfo',
{
method: "POST",
withCredentials: true,
headers: {
"accept": "application/json",
"X-API-Key": "<key>",
"Content-Type": "application/json"
},
body: <abi>, <params>
}
But it requires interacting with the function for every NFT for every time you reload the page, and it’s quite inefficient, is there a best way?