Etherium: Empty Nfts [SOLVED]

Hello,
I am having trouble with getting all my account nfts (await Moralis.Web3API.account.getNfts(option))…it used to return back data but all of a sudden, its returning an empty array.

Please help…thanks

can you share your wallet address and chain name where you have your nfts

address: 0x8b9adb5a5eb7c7c3c8e615d369803d476dfc7024,
chain: eth

getNFTs only work with wallet addresses. Since the addresses which you mentioned is a contract address you need to use getAllTokenIds to get the contract NFT’s.

const options = {
  chain: "eth",
  address: "0x8b9adb5a5eb7c7c3c8e615d369803d476dfc7024",
};
await Moralis.Web3API.token.getAllTokenIds(options);
1 Like

This was very helpful…thank you so much