scio-labs / use-inkathon

Typesafe React hooks and utility functions that simplify the process of working with Substrate-based networks and ink! smart contracts.
https://inkathon.xyz
GNU General Public License v3.0
51 stars 15 forks source link

Cycle through RPCs if initialisation fails #73

Closed peetzweg closed 4 months ago

peetzweg commented 4 months ago

As of now rpc1 of Pop Network seems to be broken/down temporarily. The chains config for pop has 3 rpc configured. However, my dapp using Pop network is broken as it just tries to connect to the first rpc in the rpc array.

It would be great if it would cycle through the rpcs in the chains config if the current one fails.

As of now I'm not aware how to make use-inkathon use another rpc than the first one in the hardcoded SubstrateChain object.

wottpal commented 4 months ago

I would say this is most probably a duplicate of #5. Let's close it here and continue discussion there (tagged you).