Cách thêm RPC mạng tùy chỉnh
Does this article need to be translated?
Submit translations, corrections, and suggestions on GitHub, or reach out on our Community forums.
Nội dung:
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.
MetaMask can access many more networks than just Ethereum mainnet: you can add any EVM-compatible network.
Ba chữ đầu RPC là viết tắt của gọi hàm từ xa, là một bộ giao thức cho phép một ứng dụng khách (như MetaMask) tương tác với một chuỗi khối.
Thêm vào thông qua Chainlist
Để xem cách dễ dàng thêm các mạng vào MetaMask, hãy truy cập chainid.network, nơi bạn có thể kết nối MetaMask và thêm các mạng chỉ bằng vài cú nhấp chuột. Hãy xem hướng dẫn của chúng tôi để biết thêm thông tin.
Also, please note that adding a network on one device does not mean it will appear on another device when accessing the same account. Nếu bạn thêm mạng trên Tiện ích mở rộng, nó sẽ không được tự động thêm vào ứng dụng MetaMask Di động và ngược lại.
Custom networks will also need to 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).
Thêm các mạng phổ biến
Trên cả Di động và Tiện ích mở rộng, bạn có thể thêm nhiều mạng nổi bật chỉ bằng một cái chạm. Những mạng đó bao gồm:
- Arbitrum
- Avalanche
- BNB Chain/BSC
- Base
- Optimism
- Polygon
- zkSync Era
Bạn có thể tìm trình đơn này bằng cách làm theo các bước sau:
- Tiện ích mở rộng
- Di động
From the homepage of your wallet, click on the network selector in the top left. 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.
-
Nhấn vào công cụ chọn mạng ở trên cùng màn hình. (Alternatively, you can tap the gear icon to access settings, and then go to 'Networks'.)
-
Ở đây bạn sẽ thấy danh sách các mạng bạn đã thêm vào. Tap the 'Add Network' button at the bottom of the screen.
-
Giờ bạn sẽ thấy một danh sách các mạng bạn có thể thêm vào tại tab "Phổ biến", như dưới đây.
-
Khi bạn chọn thêm vào một trong số các mạng này, bạn sẽ được yêu cầu xác nhận:
You'll then get the option to switch immediately to that network. Tất cả đã hoàn tất!
Thêm một mạng bằng cách thủ công
Sau đây là hướng dẫn thiết lập các kết nối này bằng cách thủ công:
- Tiện ích mở rộng
- Di động
-
Click on the network selector button. This will display a list of networks that you've added already.
-
Nhấp vào "Thêm mạng":
-
A screen will appear where you can enter the details of the network you wish to add. Click 'Save' to add the network.
The details for the above fields can be found in our network profiles or docs (i.e. developer documentation) or how-to guides for each network. Ví dụ:
Sau khi thực hiện các bước trên, bạn sẽ thấy mạng tùy chỉnh này trong lần tiếp theo bạn truy cập vào công cụ chọn mạng.
-
Nhấn vào công cụ chọn mạng ở trên cùng màn hình.
-
Nhấp vào "Thêm mạng".
-
Chuyển sang tab "Mạng tùy chỉnh".
-
Điền thông tin mạng:
The details for the above fields can be found in our network profiles or docs (i.e. developer documentation) or how-to guides for each network. Ví dụ:
After performing the above steps, you can see the custom network in the network selector.