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

วิธีการเพิ่ม RPC ในเครือข่ายที่กำหนดเอง

MetaMask can access many more networks than just Ethereum mainnet: you can add any EVM-compatible network directly within your MetaMask, create Solana accounts, and browse non-EVM networks through Snaps.

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 network settings.

On both Mobile and Extension, you can easily add several networks with just a click. You can find this using the following steps:

  1. Click on the menu in the top right and select 'Networks'.

MetaMask extension locate networks menu

  1. Scroll down until you see the 'Additional networks' section and click 'Add' next to the network you wish to add.

MetaMask extension add network

Alternatively, you can also search for the network to add in the search bar.

MetaMask extension search for network to add

Adding a network manually

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

  1. Click on the menu in the top right and select 'Networks'. This will display a list of networks that you've added already.

MetaMask extension locate networks menu

  1. Click 'Add a custom network'.

MetaMask extension add a custom network button

  1. A screen will appear where you can enter the details of the network you wish to add. คลิก 'Save' (บันทึก) เพื่อเพิ่มเครือข่าย

MetaMask extension add a custom network form

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 on the menu in the top right and select 'Networks'.

MetaMask extension locate networks menu

  1. Locate the desired network you want to edit and click the 3 dots to edit.

MetaMask extension edit existing network

  1. Select the Default RPC URL dropdown field and click “Add RPC URL”.

MetaMask extension RPC URL dropdown

  1. Enter the URL, nickname, and save your configurations.

You can now toggle between various RPC URLs 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.

Networks across devices

Adding a network on one device does not mean it will appear on another device when accessing the same account. If you add it on Extension, it will not automatically be added to your MetaMask Mobile app yet, and vice versa.

Custom networks will also need to be re-added if you uninstall the browser extension or mobile app (after which you'd need to restore your wallet using your Secret Recovery Phrase).

Adding via Chainlist

โปรดทราบว่าเราไม่ได้เก็บรักษาข้อมูลเครือข่ายบน Chainlist ตรวจสอบให้แน่ใจว่ารายละเอียดเครือข่ายถูกต้องก่อนที่จะเพิ่ม

For another way of adding networks to MetaMask, go to chainid.network, where you can connect MetaMask and add networks with a few clicks.

  1. ไปที่เว็บไซต์ Chainlist ที่ chainid.network

  2. Firstly, you'll need to connect your MetaMask to the site. เลือก 'Connect wallet' (เชื่อมต่อวอลเล็ต) ที่มุมบนขวาเพื่อดำเนินการ

Chainlist connect wallet button

เมื่อเชื่อมต่อสำเร็จแล้ว ที่อยู่ของบัญชีที่เลือกไว้ของเราจะแทนที่ปุ่ม Connect wallet' (เชื่อมต่อวอลเล็ต):

Chainlist connected wallet address button

  1. ตอนนี้ใช้แถบค้นหาเพื่อค้นหาเครือข่ายที่คุณต้องการเชื่อมต่อ เมื่อพบแล้ว คลิกที่ปุ่ม 'Add Chain' (เพิ่มเชน)

Chainlist add chain button

  1. MetaMask จะเริ่มทำงานและจะนำเสนอเมนูการอนุมัติแก่คุณ คลิก 'Approve' (อนุมัติ) เพื่อดำเนินการต่อ

MetaMask add new network from chainlist approval

  1. จากนั้นจะมีเมนูถามว่าคุณต้องการเปลี่ยนไปใช้เครือข่ายใหม่ทันทีหรือไม่ ให้ยืนยันหรือปฏิเสธซึ่งขึ้นอยู่กับความต้องการของคุณ ไม่ว่าจะด้วยวิธีใด เครือข่ายใหม่จะถูกเพิ่มเข้าไป
Was this helpful?
Connect MetaMask to provide feedback
What is this?
This is a trial feedback system that uses Verax to record your feedback as onchain attestations on Linea Mainnet. When you vote, submit a transaction in your wallet.