Connecting to a public network with local RPC node
Instructions on how to setup local RPC node that connects to a public network
Except from connecting to local development network, we can also run a local RPC node connecting to public networks.
npx @acala-network/eth-rpc-adapter@latest \
--endpoint <node-endpoint-ws-url> \
--subql <subquery-url>
Node endpoints and subquery urls can be found in network configuration.
For example to connect to acala mainnet:
npx @acala-network/eth-rpc-adapter@latest \
--endpoint wss://acala-rpc.aca-api.network \
--subql https://subql-query-acala.aca-api.network
Also checkout the help command for more details
npx @acala-network/eth-rpc-adapter@latest --help
Last updated
Was this helpful?