This repository was archived by the owner on Mar 5, 2025. It is now read-only.
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
Use web3 npm package for web workers #5681
Open
Description
Is there an existing issue for this?
Feature Request
I'm currently trying to run a web worker to check objects in smart contracts using the web3 npm package. The web3 library references the window object on import and thus errors out since the window object does not exist in the context of the web worker. All libraries not using the window object seem to be importing fine into he web worker.
Use Cases
When we want to simultaneously run a dapp and also check changes in global state variables without creating blockchain events.
Implementation Ideas
No response
Feature Examples/References
No response
Are you willing to implement this feature?
- Yes