[ZK Stack] - WebSocket for local dockerized node not working #769
-
Team or ProjectNo response Module Affected
Rust Version1.83.0-nightly Operating System
Issue DescriptionHey all, I'm trying to flood a network with transactions by executing a specified number of WETH-DAI swaps via a WebSocket RPC endpoint. My question is: could the WebSocket URL be incorrect? I couldn't find any documentation on the WebSocket URL for a dockerized node. Also, what could be causing the 403 access error? Thank you! 😊 Expected BehaviorI am able to access web sockets and perform swaps through it Current BehaviorWhile performing these swaps, I'm encountering a 403 Forbidden error. I'm using the WebSocket URL 'ws://127.0.0.1:3050'. Repository Link (if applicable)No response Additional DetailsNo response Prior Research
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
It seems like you are facing an issue with accessing the WebSocket RPC endpoint on your local dockerized ZKsync node. The WebSocket URL you are using, Here are a few steps you can check to resolve this issue:
If you continue to face issues, you might want to revisit the setup instructions or check for any updates that might affect WebSocket connections in the ZKsync dockerized environment. For more detailed discussions and support, you can visit the ZKsync developers discussions on Github. Your feedback helps us serve you better. If this fully addresses your question, please give it a thumbs up. If it doesn't, please give it a thumbs down. This will inform the community and team so we can improve our support. |
Beta Was this translation helpful? Give feedback.
-
3050 is the port for the HTTP API. For WebSocket API you need port 3051. |
Beta Was this translation helpful? Give feedback.
3050 is the port for the HTTP API. For WebSocket API you need port 3051.