44

hardhat verify合约,提示Reason: request to https://api-ropsten.etherscan.io/api...

 2 years ago
source link: https://learnblockchain.cn/question/2939
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

hardhat verify合约,提示Reason: request to https://api-ropsten.etherscan.io/api failed, reason: connect ETIMEDOUT 74.86.151.167:443

hardhat verify合约,提示Reason: request to https://api-ropsten.etherscan.io/api failed, reason: connect ETIMEDOUT 74.86.151.167:443

hardhat 上deploy 合约之后,用@nomiclabs/hardhat-etherscan 对合约进行verify,引入了指定包 @nomiclabs/hardhat-etherscan,且hardhat.config.js那个,配置了

etherscan: {
    // Your API key for Scan
     apiKey: "TP599A1JFW1K24M3VH857MN3JUEZT95VQY" // Etherscan ropsten
    //apiKey: "GJYYR3HBA2DWINR24B64RAKHWH535RXFIR" // HecoInfo

  },

浏览器的apikey信息,但是verify 报错,提示:

Error in plugin @nomiclabs/hardhat-etherscan: Failed to send contract verification request.
Endpoint URL: https://api-ropsten.etherscan.io/api
Reason: request to https://api-ropsten.etherscan.io/api failed, reason: connect ETIMEDOUT 74.86.151.167:443

个人理解是需要配置verify的代理。但是没有找到配置代理的参数配置。 哪位大佬知道如何解决此问题吗?感谢


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK