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

Retrieve RPC URL the user is using #237

Open
rhaoio opened this issue Nov 28, 2022 · 0 comments
Open

Retrieve RPC URL the user is using #237

rhaoio opened this issue Nov 28, 2022 · 0 comments

Comments

@rhaoio
Copy link

rhaoio commented Nov 28, 2022

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

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

No branches or pull requests

1 participant