Skip to content

Latest commit

 

History

History

Setup

We need a dependency, the Graph-CLI, let's go and install it

# NPM
$ npm install -g @graphprotocol/graph-cli

# Yarn
$ yarn global add @graphprotocol/graph-cli

Deploying

For deploying this subgraph, visit The Graph's studio

Click in Create a Subgraph and name it

After creating the subgraph you will find at your right multiple steps, we will follow the steps named auth & deploy

Run the commands with the corresponding with your case:


graph auth --studio <deploy_key>

graph codegen && graph build

graph deploy --studio <name_subgraph>

Use it!

Now we can let it alone for some minutes to index the data and use it!!