Skip to content

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

@technophile-04

Description

@technophile-04

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions