Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: static json rpc provider #86

Closed
wants to merge 3 commits into from
Closed

Conversation

0xVe
Copy link

@0xVe 0xVe commented Sep 28, 2022

Added an option for the providerType argument: StaticJsonRpc

With ethers.providers.JsonRpcProvider, eth_chainId is called every time the provider is used.
Use ethers.providers.StaticJsonRpcProvider to avoid making this call.

More about it: ethers-io/ethers.js#901

michwill
michwill previously approved these changes Sep 29, 2022
@michwill
Copy link
Contributor

Uhm interesting why 🤔

@0xVe 0xVe closed this Oct 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants