Blockchain 如何在rinkeby测试rpc中运行图形节点

Blockchain 如何在rinkeby测试rpc中运行图形节点,blockchain,ethereum,go-ethereum,thegraph,thegraph.com,Blockchain,Ethereum,Go Ethereum,Thegraph,Thegraph.com,我正在尝试为部署在rinkeby测试网络中的契约编写一个子图 为此,我需要在相同的rinkeby测试网络中运行graph节点 参考以下回购协议 我使用下面的cargo命令在本地机器上运行它 cargo run -p graph-node --release -- --postgres-url postgresql://postgres:postgres@localhost:5432/graph-node --ethereum-rpc 'rinkeby:https://rinkeby.inf

我正在尝试为部署在rinkeby测试网络中的契约编写一个子图

为此,我需要在相同的rinkeby测试网络中运行graph节点

参考以下回购协议

我使用下面的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

但它会抛出一个错误。我不知道我在哪里犯了错误

我无法连接rinkeby网络

请帮我解决这个问题


提前感谢。

看起来您的Infura端点设置不正确,请检查您的项目ID和您在帐户中设置的权限,可以在此处或通过您的Infura登录找到一些示例:

我在命令中犯了一个错误

删除rpc url中的单引号可以解决此问题

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