Take a Snapshot of Existing Holders

Here’s how you can take a snapshot of wallet addresses holding your NFT

Using this repo, you can take a snapshot of all the holders of a given NFT collection. This is frequently used ahead of airdropping NFT rewards.


After downloading the repo locally, you can make adjustments to you index.ts file as needed:

  1. Replace demo with your Alchemy API Key
  1. Replace NETWORK.ETH_MAINNET on alchemySettings with the Chain you're using.
  1. Replace ethereum on thirdweb SDK initialization with the Chain you're using. (Example: "polygon""avalanche""fantom" )
  1. Replace the erc const with either erc1155 or erc721, depending on your needs.
  1. Replace contractAddress, network and tokenId (in case of erc1155) with the contract address to take a snapshot of.
  1. Run with npx ts-node index.ts

Underlined variables from the repo below are where you make updates (as needed):

Notion image

Can’t get this working? If you’ve followed the above and still have issues, contact our support team for help.

Did this answer your question?