[Node Operator Question] RPC network error #195
-
Are you running the most up to date node software?
Did you check the documentation?
Did you check for duplicate questions?
Issue DescriptionHello, i used the guide on the documentation and installed Node from source. Everything went well, i can see that the logs are very similar to the logs that i must see on the Synchronization section of the guide. When i am calling: curl -X POST -H "Content-Type: application/json" --data on my terminal, i am getting a response. But when i am calling this code from my js file: const provider1 = new ethers.providers.JsonRpcProvider("http://localhost:8647") i am getting "Could not detect network". When i am running the following code: const provider1 = new ethers.providers.JsonRpcProvider("http://localhost:8647" , 'op-mainnet') i am getting "Invalid network error" Also, websocket on port 8646 is not working either. I am running Stereum on the same machine for Ethereum mainnet. So far i have tried to change port numbers, allow all local network ports from ufw. I have run the same command using QuickNode RPC and it worked without any issue. My goal is to use my local RPC instead of online node providers. Thank you very much for your time. Protocol Descriptionop-geth v1.101305.0 Node LogsNo response Additional InformationMy config for op-geth:
My config for op-node: --l1= QuickNode API FeedbackNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
If I'm not mistaken, "optimism_syncStatus" is a request sent to the op-node. Please confirm if your op-geth's port is also 8647. Please try 8646/8645 |
Beta Was this translation helpful? Give feedback.
-
Yeah @opfocus is right here, the Now in your JS code, you're calling |
Beta Was this translation helpful? Give feedback.
--rollup.sequencerhttp: HTTP endpoint of the sequencer. op-geth will route eth_sendRawTransaction calls to this URL.
For OP Mainnet, its
https://mainnet-sequencer.optimism.io
- sourceThe sequencer is a privileged node on the network, its like the rest of the rollup nodes, but it works with the batcher and proposer to build the L2 blockchain. These privileged services are allowed to make new blocks. Similar to Ethereum L1, the rollup node is made of the a execution and consensus client.
op-geth
+op-node
=rollup node