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

Use useStaticJson hook from scaffold-eth instead of using one rpc url #17

Open
technophile-04 opened this issue Oct 5, 2022 · 0 comments · May be fixed by #18
Open

Use useStaticJson hook from scaffold-eth instead of using one rpc url #17

technophile-04 opened this issue Oct 5, 2022 · 0 comments · May be fixed by #18

Comments

@technophile-04
Copy link

Current :

We are just using one static rpc-url and sometimes the eth-price is not populated if it's down also it burdens the one rpc node.

const scaffoldEthProvider = new StaticJsonRpcProvider("https://rpc.scaffoldeth.io:48544");

Proposed solution :

use useStaticJsonRpc hook from scaffold-eth to pick suitable rpc from given rpc's url array and inturn decreases the load on one rpc.

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 a pull request may close this issue.

2 participants
@technophile-04 and others