-
-
Notifications
You must be signed in to change notification settings - Fork 130
Description
Hey All,
I have a question about whether or not it is possible to retrieve the RPC URL the user currently has for a particular chain ID?
I've seen a couple of similar questions but no concrete answers so my current knowledge leads to think there is no simple way to get this information from Metamask.
https://ethereum.stackexchange.com/questions/91111/recover-rpc-url-in-metamask?noredirect=1&lq=1
https://ethereum.stackexchange.com/questions/69782/get-rpc-url-ip-of-metamasks-current-provider?noredirect=1&lq=1
The reason I am looking for something like this is because when we ask a user to add a new chain configuration using wallet_addEthereumChain , if the RPC endpoint/node provider we initially supplied stops working then we would like to be able to check this against some other providers, inform users about this and request they find a new public RPC endpoint etc.
Thanks!
Richard