Limited when using Moralis.Web3API.account.getNFTs

Hi, I need to query specific addresses but getting Too many token addresses! error.

Is there another solution to get NFTs of a certain address but only for specific collections?

Try getnftsforcontract. You can pass both wallet address and contract address as parameters.
https://docs.moralis.io/moralis-dapp/web3-api/nft-api#getnftsforcontract

Well I need more than one token address. I want to do one query for multiple token addresses but when using 11 token addresses I’m getting this error.

It works fine with 10? Maybe 10 is the limit and you can make multiple requests with 10 each

yeah, but I don’t want to query multiple times…

Are the devs see this forum and can maybe give their input?

There has to be a limit. How many contract addresses do you use?

Can get to 20-50. Doesn’t seem like a crazy limit tbh

You can propose that on roadmap.moralis.io

hmm ok. thanks. still would love to hear from the engineers

Can you give an exact example of a call you make that results in “Too many token addresses”?

Yes.

return await Moralis.Web3API.account.getNFTs({
            limit,
            format: "decimal",
            address: "0xB618aaCb9DcDc21Ca69D310A6fC04674D293A193",
            chain: "eth",
            token_addresses
        });

Where token_addresses are:

["0xABB3738f04Dc2Ec20f4AE4462c3d069d02AE045B","0xb932a70A57673d89f4acfFBE830E8ed7f75Fb9e0","0xabEFBc9fD2F806065b4f3C237d4b59D9A97Bcac7","0x2963bA471e265e5F51cAfaFca78310FE87F8E6D1","0x3B3ee1931Dc30C1957379FAc9aba94D1C48a5405","0xaad294850cba040645166ea42fe2d24f4638a0ce","0xaac81a2237974b5c48640ed57ad5f6c0b9496a4c","0xe1025d36740f2728cdaad86017b5f17dc78437fd","0xf3777bde887d59290b2749de00923cd755a562cb","0xd0f439342ab3d5e90c989ad267762fbce0ce8d45","0x89606B3d363fCCC3EbbCd043212f1b280517099e"]