Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user

An alternative to ERC712EnumerableERC721Enumerable and tokenOfOwnerByIndex()?

Source Link
highrankin
  • 183
  • 2
  • 7

An alternative to ERC712Enumerable and tokenOfOwnerByIndex()?

I'm trying to find a way round using the ERC721Enumerable.sol extension because it essentially doubles the gas fees on minting but the tokenOfOwnerByIndex() function is a bit of an essential for what i'm doing. I basically want to get a list of all the token ids owned by a particular address as quickly and easily as possible.

Anyone have any thoughts on a workaround? Even something off-chain? I did have something going using the Etherscan API to query a wallet and then sort though results to get the tokens they own but it can be a little slow. I have also tried Moralis.io but they can take a few minutes to index onchain events which can be an issue for UX in my particular use case.