Skip to content
This repository has been archived by the owner on Jul 20, 2022. It is now read-only.

Latest commit

 

History

History
55 lines (36 loc) · 983 Bytes

README.md

File metadata and controls

55 lines (36 loc) · 983 Bytes

citizen-nft-snapshot

Simple script to snapshot Citizen NFT holders

Setup

Node

  1. Install nvm (Node Version Manager)

  2. cd to the project directory and execute the following:

    nvm install
    nvm use
    npm install
    

Moralis API

  1. Create Moralis account (Moralis)

  2. Create new server (Create Server)

  3. Copy server URL and Application ID to .env

    SERVER_URL="xxx"
    APP_ID="xxx"
    

Create Snapshot

npm run snapshot

Outputs snapshot.json & total_mints.json in root directory

Prettier

This project uses Prettier, so please run it before checking in:

npm run pretty

See .prettierrc for settings.

Some IDEs and editors have plugins for running Prettier.

Linting

This project uses ESLint. Check linting before checking in:

npm run lint