MetaMask / MetaMask/providers

Retrieve RPC URL the user is using

Open
#237 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
268
Forks
130
PR merge metrics
No merged PRs in 30d

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

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the provider API behavior around wallet_addEthereumChain and the linked MetaMask discussions. The issue names no source files or tests, so first determine whether the current RPC URL is exposed at all. Done means establishing a supported retrieval mechanism or clearly documenting that it is unavailable.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, blockchain
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.