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的代理。但是没有找到配置代理的参数配置。 哪位大佬知道如何解决此问题吗?感谢