[SOLVED] What's the alternative for getNFTsForContract?

The getNFTsForContract is not working anymore, is there any alternatives? Aside from reading it from the chain itself.

I am trying to check a user if he owns a specific collection (ERC1155), we have many Token ID so it would not be good to loop them by reading it from the chain.

Try with getwalletnfts with token_addresses parameter. It returns the tokens in wallet of that particular token_addresses.

1 Like

token_addresses param needs to be modified a little bit:

1 Like

So currently the naming format is
token_addresses in http request and tokenAddresses in sdk.

We will include a note in the docs.

1 Like

Thanks guys! You the best!