Skip to content

How to snapshot NFT Holder on zkSync Era? #109

Closed Answered by idea404
Nugrahawijayasaputra asked this question in General
Discussion options

You must be logged in to vote

You can get the NFTs owned by an account by calling the optional standard method: tokenOfOwnerByIndex. If the method is not implemented I would look at the most recent mint transaction for the NFT contract, use the ID as a max value and loop from 0 calling the ownerOf(tokenId) method of the contract seeing if it matches your account address of interest.

Also, closing this discussion as it is stale for one week.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by idea404
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
General
Labels
general General question
3 participants