[SOLVED] Get wallet NFT with contract adrress and wallet address filters

Hi, I wanted to fetch all the NFTs of user XXXX from an NFT contract YYYY. But the Moralis SDK and Moralis API don’t support both filters in any APIs available.

Ref: https://docs.moralis.io/web3-data-api/evm/how-to-get-all-nfts-owned-by-an-address

Can we know how to use the wallet address and NFT contract address as a filter for the above-mentioned API

Hey @Venkatesh_OP,

thanks for reaching out to us :grinning_face_with_smiling_eyes: For your use case, you might wanna look at the getWalletNFTs API instead. There you can put the required user’s wallet address and filter it with tokenAddresses array, if you only like to get the NFT balance of certain contracts.

Hope this helps~

1 Like