Chuyển đến nội dung chính

Xác minh thông tin mạng tùy chỉnh

When a website requests that you add a custom network to MetaMask, you are presented with the information MetaMask will use to interact with the network. MetaMask performs some basic validation of this information, and will warn you if anything seems wrong or unusual. MetaMask cũng sẽ ngăn không cho mạng đó được thêm vào nhiều hơn một lần. However, MetaMask does not verify custom networks, and even if MetaMask's validation checks out, the network could be malicious or misrepresented by the website that requested it.

For more information and an introduction to custom networks, see our User Guide here.

Just like it's your responsibility to verify the Ethereum addresses you transact with, it is also your responsibility to verify any custom networks you add to MetaMask. Trong bài viết này, chúng tôi sẽ chia sẻ một số lời khuyên về cách thực hiện điều đó.

Khi một trang web đưa ra yêu cầu thêm mạng tùy chỉnh, MetaMask sẽ hiển thị xác nhận sau:

MetaMask add new network
approval

This confirmation shows the network information that the website provided. Không có gì đảm bảo rằng thông tin này là chính xác. Vì vậy, bạn chỉ nên tin tưởng thông tin đó ngang với mức độ mà bạn tin tưởng trang web.

If you click “View all details” in the confirmation, you can see all of the network information provided by the website, which includes:

  • Network Name: The name that MetaMask will associate with the network.
  • Network URL: The URL that MetaMask will use to access the network.
  • Chain ID: The chain ID that MetaMask will use to sign transactions for the network.
  • Currency Symbol: The currency symbol that MetaMask will use for the network's native currency.
    • Ví dụ: với Ethereum Mainnet, ký hiệu tiền tệ là ETH, còn với Gnosis Chain, ký hiệu là xDAI (được giữ lại sau khi hợp nhất).
  • Block Explorer URL (optional): The URL that MetaMask will direct you to in order to inspect your accounts, transactions etc. The equivalent of etherscan.io, but for the network in question.

If you are for any reason unsure about the correctness of the network information, we recommend that you take the following steps to verify it:

  • Visit Chainlist and search for the provided chain ID and/or name of the network. If MetaMask is saying that some information isn 't matching, you should be able to identify the problem on Chainlist. Nếu mạng tùy chỉnh này không hề được liệt kê trên Chainlist, hoặc là nó còn rất mới hoặc có thể có chất lượng đáng nghi ngờ.
  • Google the name of the network, and try to answer the following questions. Càng có nhiều câu trả lời "có", bạn càng có thêm lý do để tin rằng mạng đó là hợp pháp. Đừng quên có rất nhiều vụ lừa đảo và các kênh truyền thông xã hội giả mạo, nhất là trên Telegram.
    • Does the network have a website? If so, does it seem legitimate? Nó có liệt kê chi tiết mạng không?
    • Does the network have an official Twitter or other social media account? Do they have a lot of followers? Do they seem reputable? What are people saying about the network?
    • Can you identify any of the people who maintain the network? Are they visible on social media? Họ có nhiều người theo dõi không?
    • Are there any news articles about the network?

Đối với hầu hết các mạng, việc chúng có hợp pháp hay không và liệu trang web đó có cung cấp thông tin chính xác hay không đều sẽ khá rõ ràng. If you're still unsure after completing these steps, you should reject the request to add the network, do more research, and perhaps try again later.

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.