Simple script to snapshot Citizen NFT holders
-
Install
nvm
(Node Version Manager) -
cd
to the project directory and execute the following:nvm install nvm use npm install
-
Create Moralis account (Moralis)
-
Create new server (Create Server)
-
Copy server URL and Application ID to .env
SERVER_URL="xxx" APP_ID="xxx"
npm run snapshot
Outputs snapshot.json
& total_mints.json
in root directory
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.
This project uses ESLint. Check linting before checking in:
npm run lint