blockchain - 如何在 rinkeby 测试 rpc 中运行图形节点
问题描述
我正在尝试为部署在 rinkeby 测试网络中的合同编写子图。
为此,我需要在同一个 rinkeby 测试网络中运行图形节点。
参考以下回购
https://github.com/graphprotocol/graph-node
我使用下面的 cargo 命令在我的本地机器上运行它
cargo run -p graph-node --release -- --postgres-url postgresql://postgres:postgres@localhost:5432/graph-node --ethereum-rpc 'rinkeby:https://rinkeby.infura.io/v3/2a46ac7cdb4c44acac4de87dadfd6e39' --ipfs 127.0.0.1:5001
我使用 infura.io 获取 rinkeby rpc url。
但它会引发错误 401 Unauthorized。我不知道我在哪里犯错误。
我无法连接 rinkeby 网络。
请帮我解决这个问题。
提前致谢。
解决方案
看起来您的 Infura 端点设置不正确,请检查您的项目 ID 和您在帐户中设置的权限,可以在此处或通过您的 Infura 登录找到一些示例:https ://infura.io/docs/gettingStarted /chooseaNetwork
推荐阅读
- php - 如何使用 PHP 中的嵌套函数从所选类别中选择子类别?
- csv - 将 CSV 文件导入 neo4j 的急切操作员警告
- docker - 需要澄清 openshift docker 映像中的文件存储
- oracle - Oracle 日期和时间提示
- java - SQL 错误:1064,SQLState:42000,如果在 sqlworkbench 中单独执行,则工作正常
- c - 如何处理前面的逻辑
- javascript - DiscordAPIError:无法发送空消息
- python - 寻找一种通过休息来拆分班次的算法
- python - 如何解决此命令提示符-python 相关问题?
- angular - 我如何将 NgRx 中的所有减速器导出到一个索引文件中?