.getNFTs works for mainnet but not rinkeby

I am able to get all the NFTs i own on OpenSea in the mainnet network, but when I create NFTs in the rinkeby network an empty array is returned?

  const { isInitialized, Moralis } = useMoralis();
  let options = { chain: 'mainnet', address: `0xfEE96e4FA418E99367b85A6D788cA59A691b04B3` } //Works 
  options = { chain: 'rinkeby', address: `0x25657992e3B30FE0148a7B9F1E9036ead5507EEc` } //Doesnt

  useEffect(() => {
    if (isInitialized) {
      Moralis.Web3.getNFTs(options).then(nfts => {
        console.log(nfts)
        setNfts(nfts)
      });
    }
  }, [isInitialized, Moralis]);


1 Like

Hey @niko

Take a look at https://docs.moralis.io/misc/faq#opensea-nfts

Hope this will help you :man_mechanic:

1 Like