Get a JSON with the owners and the quantity of each owned item for any ERC721 or ERC1155 contract, on any chain.
-
Install dependencies
npm install # or yarn -
Replace
NETWORK.ETH_MAINNETonalchemySettingswith the Chain you're using. -
Replace
ethereumon thirdweb SDK initialization with the Chain you're using. (Example:"polygon","avalanche","fantom") -
Replace the
ercconst with eithererc1155orerc721, 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
Convert for Snapshot/Airdrop compatible with thirdweb by uploading output.json to convertcsv.com