TheGraph学习笔记

官网

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14

npm install -g @graphprotocol/graph-cli@latest

graph init

npm install

graph codegen

graph build

graph auth <DEPLOY_KEY>

graph deploy <SUBGRAPH_SLUG>

alt text

踩坑

name中是下划线_,但是在slug中则是-

alt text

本地graph init创建的name要和studio的一致,否则最后部署会出现

1
× Failed to deploy to Graph node https://api.studio.thegraph.com/deploy/: Subgraph not found

部署后

deploy 后:自己已经可以查,也可以接应用做开发/演示

publish 后:别人也能把它当正式网络服务来用

comments powered by Disqus
使用 Hugo 构建
主题 StackJimmy 设计