カスタムネットワーク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:
- Extension
- Mobile
ウォレットのホームページで、左上にあるネットワークセレクターをクリックします。 「他のネットワーク」セクションが表示されるまで、下にスクロールします。 また、検索バーでネットワークを検索して追加することもできます。
Tap the "Add" button next to the network to add it to your MetaMask instance.
-
画面上部にあるネットワーク選択ツールをタップします。 (または、歯車アイコンをタップして設定にアクセスし、「ネットワーク」に移動することもできます。)
-
ここでは、すでに追加したネットワークのリストが表示されます。 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は、ネットワークの切り替えがスムーズにできるように取り組んでいます。 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:
- Extension
- Mobile
-
ネットワークセレクターボタンをクリックします。 これにより、すでに追加されているネットワークのリストが表示されます。
-
Click "Add custom network":
-
追加するネットワークの情報を入力できる画面が表示されます。 Click "Save" to add the network.
-
画面上部にあるネットワーク選択ツールをタップします。
-
Tap on "Add Network".
-
Switch to the "Custom networks" tab.
-
ネットワークの情報を入力します:
上記の手順を実行すると、ネットワークセレクターにカスタムネットワークが表示されます。
上記のフィールドの詳細については、ネットワークプロファイル、(開発者ドキュメントなどの) ドキュメント、または各ネットワークのハウツーガイドをご覧ください。 例:
上記の手順を実行すると、次にネットワークセレクターにアクセスした際、カスタムネットワークが表示されるようになります。
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.
また、ブラウザ拡張機能やモバイルアプリをアンインストールした場合も、カスタムネットワークの再追加が必要です (その後、シークレットリカバリーフレーズを使用してウォレットを復元する必要があります)。