punk-wallet
punk-wallet copied to clipboard
Use useStaticJson hook from scaffold-eth instead of using one rpc url
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.