/tokenholder-subgraph

Tracks ERC20 tokenholders across a list of tokens

Primary LanguageTypeScriptGNU General Public License v3.0GPL-3.0

Token Holder Subgraph

What

Tracks token holders and their balances across a list of ERC20 tokens. Only tokens that meet the ERC20 standard will work.

List?

The list is stored as TOKENS in generateYaml.js. Each token must specify the token address and the block the contract was created at.

How to build?

yarn install

node generateYaml.js

This will create the subgraph.yaml file based on token list in generateYaml.js

yarn codegen

yarn build

To deploy, update package.json with subgraph endpoint and run deploy script.

Sandbox

Try graph sandbox here.