MetaMask / metamask-extension

:globe_with_meridians: :electric_plug: The MetaMask browser extension enables browsing Ethereum blockchain enabled websites
https://metamask.io
Other
11.66k stars 4.78k forks source link

Allow configuring default block explorer #10478

Open danfinlay opened 3 years ago

danfinlay commented 3 years ago

Currently we allow configuring a block explorer on custom RPCs, but not for our stock networks. Would be nice to let users choose alternative block explorers there.

tmashuang commented 3 years ago

Related to #7647

tjayrush commented 3 years ago

I'm playing around with comparing to see if two different block explorers show the same things when I look at an account's history. It would be cool to have this feature.

A slight extension (not imperative) would be two identical networks with everything the same but the explorer. Alternatively, allow me to specify two (or more) explorers for a given network and then show me multiple choices on the main page. (Or a popup to choose between them from the front page.)

adrianmcli commented 2 years ago

I'd like to switch from Infura to Alchemy for my Ethereum Mainnet's RPC endpoint. Is there currently a way to do this?

httpJunkie commented 7 months ago

Bump. I thought that configuring block explorer was only restricted on Ethereum (ChainID 1) however, I have had requests to create an issue to allow configuration of block explorer for Ethereum and I suppose any other default or stock networks.

Is there any more immediacy to do this than there was is 2021? I would think so.

adrianmcli commented 7 months ago

I found the culprit: https://github.com/MetaMask/metamask-extension/blob/2d282ef25dc2b746180b530850a587c06e33be38/ui/pages/settings/networks-tab/networks-tab.js#L35-L39

Basically default networks are given a viewOnly=true boolean in order to make it uneditable.

adrianmcli commented 7 months ago

I have created a PR to affect this change ^