My Code here:
const Moralis = require(‘moralis/node’);
const serverUrl = “https://eprfpy1pddiw.usemoralis.com:2053/server”;
const appId = “LnyEdW1E5FQ1U7bibkVRKL8xi4ohvfrKXdxEIDuk”;
Moralis.start({serverUrl, appId});
const collectionAddress = “0xeb5097365f96afe93b6a39e0cc2ac0cc5595180a”;
const collectionname = “Avalant”;
async function generateRarity(){
const NFTs = await Moralis.Web3API.token.getAllTokenIds({address:collectionAddress});
console.log(NFTs);
};
generateRarity();
Then when I use " node main.js " comment. I got this ;
PS C:\Users\merve\Dropbox\PC\Desktop\Moralis\AvaxNft> node main.js
{ total: 0, page: 0, page_size: 500, cursor: ‘’, result: [] }
Where is my mistake guys ?