syousif94 / generate-pulse-snapshot

Generate a snapshot of owners with quantity for any erc721/erc1155, on any chain.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Generate contract snapshot

Get a JSON with the owners and the quantity of each owned item for any ERC721 or ERC1155 contract, on any chain.

Usage

  • Install dependencies

    npm install
    # or
    yarn
  • Replace NETWORK.ETH_MAINNET on alchemySettings 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 either erc1155 or erc721, 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 to CSV

Convert for Snapshot/Airdrop compatible with thirdweb by uploading output.json to convertcsv.com

About

Generate a snapshot of owners with quantity for any erc721/erc1155, on any chain.


Languages

Language:TypeScript 100.0%