/{address}/nft displays all the individual items a user owns.
I need something similar, but one which only returns the top-level contract addresses of the NFTs, not the specific tokens.
I could iterate through the responses from the aforementioned endpoint and filter out the unique addresses but that would be time-wasting depending on the number of tokens a user owns.
You will need to do this yourself with the API results, Moralis doesnβt have something for this that only gives contract addresses.
I could iterate through the responses from the aforementioned endpoint and filter out the unique addresses but that would be time-wasting depending on the number of tokens a user owns.
You will still need to make additional API requests for larger numbers of owned tokens due to the page size limit of 100 so you could process each batch for their unique addresses.
1 Like