[SOLVED] getAllTokenIds Api not working with avax

I kept trying to use the avax chain to call the getAllTokenIds API, but it kept failing. eth and other chains are good.

const options = { address: “0x…”, chain: “avax” };
const NFTs = await Moralis.Web3API.token.getAllTokenIds(options);
console.log(NFTs)

do you also have a specific example?

const options = { address: “0x6d5087b3082f73d42a32d85e38bc95dccede39bb”, chain: “avax” };
const NFTs = await Moralis.Web3API.token.getAllTokenIds(options);
console.log(NFTs)

I tried this

this seems to work fine:

await Moralis.Web3API.token.getAllTokenIds({"address": "0x6d5087b3082f73d42a32d85e38bc95dccede39bb", chain:"avalanche"})
1 Like

yeh its working fine with your answer and thank you very much @cryptokid