Aller au contenu principal

Comment ajouter un réseau personnalisé RPC

Cet article doit-il être traduit ?

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.

L'acronyme RPC signifie « remote procedure call » (appel de procédure à distance), un ensemble de protocoles permettant à un client (tel que MetaMask) d'interagir avec une blockchain. 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.

remarque

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. Il s'agit de :

  • Arbitrum
  • Avalanche
  • BNB Chain/BSC
  • Base
  • Optimism
  • Polygon
  • zkSync Era

You can find this using the following steps:

À partir de la page d'accueil de votre portefeuille, cliquez sur le sélecteur de réseau en haut à gauche. 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

Network commutation

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.

Ajout manuel d'un réseau

If you don’t see a desired network in the list, you can follow these instructions to establish the network connection manually:

  1. Cliquez sur le bouton sélecteur de réseau. La liste des réseaux auxquels vous êtes déjà connecté s'affiche.

  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

Les détails pour les champs ci-dessus se trouvent dans nos profils de réseau ou, alternativement, docs (c.-à-d. la documentation du développeur) ou guides pratiques pour chaque réseau. Par exemple :

Après avoir effectué les étapes ci-dessus, vous pourrez voir le réseau personnalisé la prochaine fois que vous accéderez au sélecteur de réseaux.

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.

Ajout via la Chainlist

Pour ajouter facilement des réseaux à MetaMask, rendez-vous sur chainid.network, où vous pouvez connecter MetaMask et ajouter des réseaux en quelques clics. Consultez notre guide pour plus d'informations.

De plus, veuillez noter que l'ajout d'un réseau sur un appareil ne signifie pas qu'il apparaîtra sur un autre appareil lors de l'accès au même compte. If you add it on Extension, it will not automatically be added to your MetaMask Mobile app yet, and vice versa.

Les réseaux personnalisés devront également être ajoutés à nouveau si vous désinstallez l'extension de navigateur ou l'application mobile (après quoi vous devrez restaurer votre portefeuille en utilisant votre phrase de récupération secrète).