[Solved]Error: Invalid or unsupported chain "polygon"

How to get nfts for an address on polygon chain?
I tried this but i am getting error

const fetchNFTS=async()=>{

    const options={chain:'polygon',address:currentAccount}

    const nfts=await Moralis.Web3.getNFTs(options)



    console.log(nfts)

}

It looks like that is an old syntax with Moralis.Web3

Check the documentation for latest syntax: docs.moralis.io

1 Like

I checked theres nothing related to fetching nfts through the sdk

Search for web3api in documentation.

1 Like