/graph-hack-2022-mva

Graph Hackathon 2022 mva erc20 and erc1155

Primary LanguageTypeScriptMIT LicenseMIT

To deploy this subgraph

  1. Create a new subgraph in The Graph Hosted service

You will then have a username/subgraphname that you will use later.

  1. Clone the repo:
git clone git@github.com:dabit3/erc20-subgraph-starter.git
  1. Install dependencies
npm install

# or

yarn
  1. Update the deploy script in package.json to match the name of your subgraph:
"deploy": "graph deploy --node https://api.thegraph.com/deploy/ dabit3/erc20subgraphtst"

# update
dabit3/erc20subgraphtst"

# to 
your-username/your-subgraphname"
  1. Authenticate
graph auth
  1. Deploy
yarn deploy

Example query

{
  accounts {
    ERC20balances {
      id 
      value
      contract {
        name
      }
    }
  }
}