Как добавить кастомную сеть RPC
Нужно ли перевести эту статью?
Отправляйте переводы, исправления и предложения на GitHub или пишите на форумах нашего сообщества.
MetaMask can access many more networks than just Ethereum mainnet: you can add any EVM-compatible network directly within your wallet and browse Snaps for additional non-EVM interoperability.
Аббревиатура RPC означает удаленный вызов процедур (remote procedure call) — набор протоколов, которые позволяют клиенту (например, 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 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 prominent networks with just a click. К ним относятся:
- Arbitrum
- Avalanche
- BNB Chain/BSC
- Base
- Optimism
- Polygon
- zkSync Era
You can find this using the following steps:
- Расширение
- Мобильное приложение
На главной странице кошелька нажмите на меню выбора сетей в верхней части экрана. 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.
-
Tap the network selector at the top of the screen. (Alternatively, you can tap the gear icon to access settings, and then go to 'Networks'.)
-
Здесь вы увидите список сетей, которые уже добавили. Tap the "Add Network" button at the bottom of the screen.
-
You should now see a list of networks you can add under the "Popular" tab, as shown below.
-
When you choose to add one of them, you'll be prompted to confirm your selection and then get the option to switch immediately to that network. Готово!
MetaMask is in the process of improving the networking switching experience. As of v12.0, you will no longer have to manually switch between networks while connected to multiple dapps at the same time. This feature is currently available in Extension only.
Добавление сети вручную
If you don’t see a desired network in the list, you can follow these instructions to establish the network connection manually:
- Расширение
- Мобильное приложение
-
Нажмите на кнопку меню выбора сетей. Отобразится список сетей, к которым вы уже подключены:
-
Click "Add custom network":
-
A screen will appear where you can enter the details of the network you wish to add. Click "Save" to add the network.
-
Tap the network selector at the top of the screen.
-
Tap on "Add Network".
-
Switch to the "Custom networks" tab.
-
Fill in the network's details:
После выполнения указанных шагов вы сможете увидеть кастомную сеть в меню выбора сетей.
Подробная информация по вышеуказанным полям приводится в наших сетевых профилях, в документах (т.е. документации разработчиков) и практических руководствах по каждой сети. Например:
После выполнения указанных шагов вы сможете увидеть кастомную сеть при следующем доступе к меню выбора сетей.
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.
- Расширение
- Мобильное приложение
- Click the network icon in the top left of your wallet to show the list of enabled 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 network selector at the top in the middle of your wallet to show the list of enabled networks
- Click the 3 dots by the network you want to edit
- Select the Default RPC URL downtown field and click “Add RPC URL”
- Enter the URL, nickname, and click “Add URL” to save your configurations
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.
Добавление через Chainlist
Чтобы легко добавить сети в MetaMask, перейдите на chainid.network, где вы можете подключить MetaMask и добавить сети всего за несколько кликов. См. подробнее в нашем руководстве.
Также обратите внимание: добавление сети на одном устройстве не означает, что она появится на другом устройстве в том же счете. If you add it on Extension, it will not automatically be added to your MetaMask Mobile app yet, and vice versa.
Кастомные сети также надо будет повторно добавить, если вы удалите расширение браузера или мобильное приложение (после чего вам потребуется восстановить свой кошелек с помощью секретной фразы для восстановления).