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):
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?
😞
😐
🤩