StaticJsonRpcProvider is removed in v6 #3994
dellwatson
started this conversation in
General
Replies: 1 comment 2 replies
-
It's built into the JsonRpcProvider, using the JsonRpcOptions. That way it can be used easily within any sub-class, since JavaScript doesn't support multiple inheritance. :) const provider = new ethers.JsonRpcProvider(
url,
null,
{ staticNetwork: ethers.Network.from(chainId) }
); |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
i saw it no longers available in v6? why is it removed?
Beta Was this translation helpful? Give feedback.
All reactions