getAllTokenIds not adhering to documentation?

We have to integrate with an ERC1155 which has token ids with a large amount of tokens. We want to dynamically receive the current supply for a specific token id.

calling the following function returns a huge array because each owner is a separate entry in the array

Trying to use getAllTokenIds seemed like it should return what we want but it also includes the “owner_of” field, resulting in the huge array where we can’t get any data unfortunately.

1 Like

I don’t know yet the answer to your question regarding what Moralis.Web3API.token.getAllTokenIds should return, this is somehow related to this: Moralis not indexing some NFTs in a contract on polygon

Any update? Still facing the issue

I don’t have an update yet, maybe I have it today/tomorrow.