Here are the steps to change the OP Mainnet endpoint on MetaMask, for example because you'd rather use an endpoint from a node provider:
- Open MetaMask.
- Change the network to something other than Optimistic Ethereum (for example, Ethereum Mainnet).
- Remove the Optimistic Ethereum network (and click Delete to confirm).
- Click the circle icon at the top right and select Settings.
- Click Networks and then Add Network.
- Enter the network parameters:
Network Name OP Mainnet New RPC URL The new RPC URL Chain ID 10 Currency Symbol ETH Block Explorer URL https://optimistic.etherscan.io - Click Save.
- Congratulations, you can now use OP Mainnet through the new endpoint.