graph-node
from TheGraph可以从区块链中获取数据。
来自https://github.com/graphprotocol/graph-node/blob/master/docs/getting-started.md
cargo run -p graph-node --release -- \
--postgres-url postgresql://<USERNAME><:PASSWORD>@localhost:5432/<POSTGRES_DB_NAME> \
--ethereum-rpc <ETHEREUM_NETWORK_NAME>:https://mainnet.infura.io \
--ipfs 127.0.0.1:5001 \
--debug
所以运行--ethereum-rpc mainnet:https://mainnet.infura.io
但是如何拥有graph-node
一对多的区块链,例如一个以太坊主网和一个以太坊测试网?