跳至主内容

验证自定义网络信息

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 还将防止多次添加同一个网络。 然而,MetaMask 并不验证自定义网络,即使 MetaMask 的验证检查出问题,则该网络可能是恶意的或为请求该网络的网站所歪曲。

有关自定义网络的更多信息和介绍,请参阅此处的用户指南

您还有责任验证您添加到 MetaMask 的自定义网络,如同您有责任验证您交易的以太坊地址一样。 在本文中,我们将分享一些这方面的建议。

当网站提出添加自定义网络的请求时,MetaMask 会显示以下确认信息:

MetaMask add new network
approval

This confirmation shows the network information that the website provided. 无法保证此信息正确与否。 因此,若信任该网站,便信任此信息,两者同理。

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.
    • 例如,以太坊主网的货币符号是 ETH,而 Gnosis Chain 的货币符号是 xDAI(合并后保留)。
  • 区块浏览器 URL(可选):这是 MetaMask 将引导您访问的 URL,以便检验您的账户、交易等。 相当于 etherscan.io,但仅用于相关网络。

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:

  • 访问 Chainlist 并搜索该网络的链 ID 和/或名称。 如果 MetaMask 表示某些信息不匹配,那么您应该能够识别 Chainlist 上的问题。 如果自定义网络根本没有列入 Chainlist,要么该网络非常新,要么可能质量有问题。
  • Google the name of the network, and try to answer the following questions. 您的肯定回答越多,那么该网络合法的理由就越充分。 请注意,有许多诈骗和虚假社交媒体渠道,尤其是在 Telegram 上。
    • Does the network have a website? If so, does it seem legitimate? 是否列出了网络的详细信息?
    • 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? 关注者多吗?
    • Are there any news articles about the network?

大多数网络是否合法,以及网站是否提供了准确的信息,是显而易见的。 完成这些步骤后,如果您仍然不确定,则应拒绝添加该网络的请求,做更多的调研,也许稍后再试。

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.