This may not be possible to implement in an easy fashion via the standard calls only to blockchain, therefore I'd consider third-party API providers such as Alchemy.com

I'm aware of, let's say, getNFTs method, but it doesn't return the amount of copies an ERC1155 token has, does it?

How would one do it then?


I've said Alchemy.com! Not aMoralis.

1 Answer 1


If you have the contract and token ID then you shouldn't need any indexer as long as the contract you're interested in has the ERC1155Supply extension.

Then it will have the totalSupply(id) function.

  • there's no condition that my contract implements ERC1155Supply extension. to begin with
    – Nondi
    Jul 23, 2023 at 16:54
  • moreover, my question is about circulating amount of tokens rather than the maximal allowed
    – Nondi
    Jul 23, 2023 at 16:55
  • The totalSupply function would give you the circulating amount. But if the contract does not contain that extension I'm not sure what to do. Alchemy does not return that data in its NFT API.
    – Filip
    Jul 25, 2023 at 16:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.