Hi I am trying to retrieve an entire collection of NFTs and I started by using the gettokenIds function however I realized that does not return the owners of those tokenIds… In the docs I see that getnftowners returns the owners however I’m unsure if it returns an object for each tokenid or an array if an owner happens to own 3/4 tokens
there is a separate API endpoint that returns the owners
Do you mind referring me to it please
I think that it is called getNFTOwners
you can test it directly in https://admin.moralis.io/web3apis
or in docs.moralis.io
from what I know it returns different objects, not an array
Yes I understand - may be a dumb question but just want to clarify whether it does it for each tokenid? (ie does an owner appear once or multiple times if they own multiple tokens in the collection
Nevermind thanks got it
1 Like