How to add a custom network
MetaMask lets you connect to many different networks. Before adding one manually, check whether it’s already supported by default.
Ethereum • Linea • Base • Solana • Bitcoin • Polygon • BNB Chain • Arbitrum • OP • Sei • Avalanche • zkSync Era
Adding a popular network
On both Mobile and Extension, you can easily add several networks with just a click:
- Extension
- Mobile
- Click on the menu in the top right and select 'Networks'.
- Scroll down until you see the 'Additional networks' section and click 'Add' next to the network you wish to add.
或者,您也可以在搜索栏中搜索要添加的网络。
- Tap the networks dropdown at the top of the 'Tokens' tab.
- 您将在此处看到已经添加的网络列表。 Scroll down to the 'Additional networks' section at the bottom of the screen.
- Tap the '+' icon to add a network, and you'll be prompted to confirm your selection. 全部完成!
Adding a network manually
If you don’t see a desired network in the list, you can follow these instructions to establish the network connection manually:
- Extension
- Mobile
- Click on the menu in the top right and select 'Networks'. 这将显示您已添加的网络列表。
- Click 'Add a custom network'.
- 将出现一个屏幕,您可以在其中输入要添加的网络的详细信息。 点击“保存”以添加网络。
- Tap the networks dropdown at the top of the 'Tokens' tab.
-
Switch to the 'Custom' tab.
-
Tap on 'Add a custom network'.
- 填写网络详细信息:
执行上述步骤后,您将能够在网络选择器中看到自定义网络。
Adding or editing RPC URLs
首字母缩略词 RPC 代表远程过程调用,这是一组协议,可让客户端(例如 MetaMask)与区块链交互。 You can add multiple RPC URLs for a single network and edit the default RPC URL from your list of networks in both Extension and Mobile settings.
Adding a custom RPC URL to Ethereum, Linea, Base, Arbitrum, or BNB Smart Chain RPC will disable Smart Transaction capabilities like MEV protection. To re-enable this, you'll need to switch back to the default RPC URL from network settings.
- Extension
- Mobile
- Click on the menu in the top right and select 'Networks'.
- Locate the desired network you want to edit and click the 3 dots to edit.
- Select the Default RPC URL dropdown field and click “Add RPC URL”.
- Enter the URL, nickname, and save your configurations.
- Tap the networks dropdown at the top of the 'Tokens' tab.
- Click the 3 dots by the network you want to edit and tap "Edit".
- Select the RPC URL dropdown field and click “Add RPC URL”.
- Enter the URL, nickname, and click “Save” to save your configurations.
You can now toggle between various RPC URLs when you want to switch providers. To delete any RPC URL, follow the same steps above and click on the trash bin icon to delete.
Adding a network on one device does not mean it will appear on another device when accessing the same account. If you add it on Extension, it will not automatically be added to your MetaMask Mobile app yet, and vice versa.
Custom networks will also need to be re-added if you uninstall the browser extension or mobile app (after which you'd need to restore your wallet using your Secret Recovery Phrase).
Adding via Chainlist
请注意,我们并不维护 Chainlist 上的网络信息。 添加网络之前,请确保网络详情准确无误。
For another way of adding networks to MetaMask, go to chainid.network, where you can connect MetaMask and add networks with a few clicks.
- Extension
- Mobile
-
前往 Chainlist 网站:chainid.network。
-
Firstly, you'll need to connect your MetaMask to the site. Select 'Connect' in the top right to do so.
When successful, the address of our selected account will replace the 'Connect' button:
- 现在使用搜索栏查找您要连接的网络。 找到后,点击“添加链”按钮。
- MetaMask 将立即自行操作,显示批准菜单。 Click 'Confirm' to proceed.
- 使用 MetaMask 应用内浏览器,前往链列表网站。
在浏览器中,点击顶部菜单栏中的地址,导航至 https://chainid.network/,或点击底部工具栏中的放大镜,然后搜索。
- On Chainlist, you need to connect your MetaMask. 您当前选择的账户将是自动连接的账户,不过您可以返回钱包视图,改变账户,然后返回浏览器中的 Chainlist 进行连接,便可轻松兑换。
When your wallet is connected, the selected account address will be displayed where the 'Connect' button was.
- 接下来,通过搜索找到您要连接的网络。 找到网络后,点击“添加链”:
- 现在您只需要批准添加网络。