Skip to content

jerryji/ropsten_wss_timeout_demo

Repository files navigation

Shows Infura Ropsten websocket timeout in web3.py, but not in web3.js

Prerequisites

pip3 install -r requirements.txt

npm install
export PROJECT_ID=<Your Infura Project ID>

Run

Same implementation, returns events in web3.js, timeout in web3.py --

node ropstenWssTimeoutDemo.js

python3 ropsten_wss_timeout_demo.py

In addition, ropsten_wss_timeout_demo2.py shows web3.py works when toBlock - fromBlock <= 112, but timeout when toBlock - fromBlock > 112

python3 ropsten_wss_timeout_demo2.py

About

Shows Infura Ropsten websocket timeout (with web3.py)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published