ข้ามไปยังเนื้อหาหลัก

วิธีการเพิ่ม 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:

จากหน้าแรกของวอลเล็ตของคุณ คลิกที่ตัวเลือกเครือข่ายที่มุมบนซ้าย 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 การสลับ

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:

  1. คลิกที่ ปุ่มเลือกเครือข่าย 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.

การเพิ่มผ่าน 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.

คุณจำเป็นต้องเพิ่มเครือข่ายที่กำหนดเองกลับเข้าไปอีกครั้งด้วย หากคุณถอนการติดตั้งส่วนขยายเบราว์เซอร์หรือแอปมือถือ (หลังจากนั้น คุณจะต้องกู้คืนวอลเล็ตของคุณ โดยใช้วลีกู้คืนรหัสของคุณ)