ianlapham / tokenholder-subgraph

Tracks ERC20 tokenholders across a list of tokens

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Tracks ERC20 tokenholders across a list of tokens

License:GNU General Public License v3.0


Languages

Language:TypeScript 76.4%Language:JavaScript 23.6%