DEV Community

Gogu
Gogu

Posted on

How to switch MetaMask back to the default Ethereum RPC

To switch MetaMask back to its default Ethereum RPC, edit Ethereum Mainnet, select the Infura RPC URL, and save. MetaMask can keep several RPC URLs for one network, but only the selected URL routes transactions. The Flashbots Protect endpoint can stay saved while you use Infura.

Before you start, make sure you have no pending private transaction. These steps apply when Protect is an extra RPC URL in the built-in Ethereum Mainnet settings.

Switch Ethereum Mainnet to Infura

  1. Open MetaMask’s network menu and choose Ethereum Mainnet.
  2. Open the network’s edit settings and find its RPC URL list. If you added Protect as a separate network, select the built-in Ethereum Mainnet from the network menu instead. You can delete the custom Protect network if you no longer want it.
  3. Select the Infura entry as the active RPC URL, then save the network settings.
  4. Check the network details and confirm the Infura URL is selected. That confirms new transactions will use the default RPC.

Your saved Protect URL remains in the RPC list after you switch. To use private routing again later, select that saved URL; you do not need to add it again. Keeping it there makes switching back a single selection.

What changes when you switch

New transactions go through the public mempool when Infura is active, so they no longer receive Flashbots Protect’s front-running protection. This changes how transactions are routed; it does not change your Ethereum Mainnet account or assets.

Ethereum Mainnet uses chain ID 1 with any RPC URL. Your balances and transaction history therefore stay the same when you switch from Protect to Infura. The change applies to transactions sent from then on.

Top comments (0)