Skip to content

citydaoproject/token-query-tools

Repository files navigation

CityDAO Token Query Tools

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

Set up a free node on Moralis.

NOTE: Free nodes will suspend after 3 days and terminate 24 days after that.

  1. Click Start for Free on the Moralis website
  2. Click Sign up if you don't have an account
  3. Click Create New Dapp
  4. Select Environment: Mainnet
  5. Select Network: Eth
  6. Click Proceed
  7. Select Region: New York (or close to you)
  8. Click Proceed
  9. Name your Dapp something like 'CityDAO Token Query'
  10. Click Create Your Dapp
  11. When the Dapp is created, click Settings
  12. You will need the Dapp URL and Application ID for the following step

Environment Setup

Copy example.env to .env and fill in the values

IDE Setup

This project uses EditorConfig for IDE configuration.

See .editorconfig for settings.

Many popular IDEs and editors support this out of the box or with a plugin.

Development

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

See tslint.json for settings.

Many IDEs and editors support TSLint.

Testing

This project uses Jest for testing. Run tests before checking in.

npm test

Building

npm run build

Using the CLI

  1. Compile the code with npm run build
  2. Execute the CLI with bin/token-query-tools.sh ...
  3. Get help with bin/token-query-tools.sh --help or bin/token-query-tools.sh <command> --help

About

Tools for querying tokens (NFTs and FTs)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published