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:
- Replace
demo
with your Alchemy API Key
- Replace
NETWORK.ETH_MAINNET
onalchemySettings
with the Chain you're using.
- Replace
ethereum
on thirdweb SDK initialization with the Chain you're using. (Example:"polygon"
,"avalanche"
,"fantom"
)
- Replace the
erc
const with eithererc1155
orerc721
, depending on your needs.
- Replace contractAddress, network and tokenId (in case of erc1155) with the contract address to take a snapshot of.
- Run with
npx ts-node index.ts
Underlined variables from the repo below are where you make updates (as needed):
![Notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F936e2ab2-6fde-43f4-9a12-377b628d0044%2FScreen_Shot_2022-12-12_at_3.43.17_PM.png?table=block&id=38b40e17-94e7-474a-9e53-92b28c6682e5&cache=v2)
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?
😞
😐
🤩