メインコンテンツへスキップ

カスタムネットワークRPCを追加する方法

この記事の翻訳が必要ですか?

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:

ウォレットのホームページで、左上にあるネットワークセレクターをクリックします。 「他のネットワーク」セクションが表示されるまで、下にスクロールします。 また、検索バーでネットワークを検索して追加することもできます。

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

MetaMask additional networks
modal

Network 切り替え

MetaMaskは、ネットワークの切り替えがスムーズにできるように取り組んでいます。 v12.0の時点で、複数のDAppに同時に接続している状態で、ネットワークを手動で切り替える必要はなくなりました。 この機能は現在、Extensionでのみ利用できます。

手動でネットワークを追加

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

  1. ネットワークセレクターボタンをクリックします。 これにより、すでに追加されているネットワークのリストが表示されます。

  2. Click "Add custom network":

    MetaMask add network
extension

  3. 追加するネットワークの情報を入力できる画面が表示されます。 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.

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.

また、ブラウザ拡張機能やモバイルアプリをアンインストールした場合も、カスタムネットワークの再追加が必要です (その後、シークレットリカバリーフレーズを使用してウォレットを復元する必要があります)。