Chuyển đến nội dung chính

Cách thêm RPC mạng tùy chỉnh

MetaMask can access many more networks than just Ethereum mainnet: you can add any EVM-compatible network directly within your wallet, create Solana accounts, and browse non-EVM networks through Snaps.

Ba chữ đầu RPC là viết tắt của gọi hàm từ xa, là một bộ giao thức cho phép một ứng dụng khách (như MetaMask) tương tác với một chuỗi khối. 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.

ghi chú

Adding a custom RPC URL will disable Smart Transaction capabilities. To re-enable this, you'll need to switch back to the default RPC URL from the network dropdown selector.

On both Mobile and Extension, you can easily add several networks with just a click. You can find this using the following steps:

From the homepage of your wallet, click on the network selector in the top left. Scroll down until you see the 'Additional networks' section. Alternatively, you can also search for the network to add in the search bar.

Tap the "Add" button next to the network to add it to your MetaMask instance.

MetaMask additional networks
modal

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:

  1. Click on the network selector button. This will display a list of networks that you've added already.

  2. Click "Add custom network":

    MetaMask add network
extension

  3. A screen will appear where you can enter the details of the network you wish to add. Click "Save" to add the network.

    MetaMask additional networks
modal

Adding or editing RPC URLs

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.

  1. Click the network icon in the top left of your wallet to show the list of enabled networks.
  2. Locate the desired network you want to edit and click the 3 dots to edit.

MetaMask edit existing network
RPC

  1. Select the Default RPC URL dropdown field and click “Add RPC URL”.
  2. Enter the URL, nickname, and save your configurations.

MetaMask add RPC URL

You can now toggle between various RPC URLs directly from the network drop-down selector 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 via Chainlist

Để xem cách dễ dàng thêm các mạng vào MetaMask, hãy truy cập chainid.network, nơi bạn có thể kết nối MetaMask và thêm các mạng chỉ bằng vài cú nhấp chuột. Hãy xem hướng dẫn của chúng tôi để biết thêm thông tin.

Also, please note that 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 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).

Was this helpful?
Connect MetaMask to provide feedback
What is this?
This is a trial feedback system that uses Verax to record your feedback as onchain attestations on Linea Mainnet. When you vote, submit a transaction in your wallet.