Keep getting this error: "NomicLabsHardhatPluginError: Invalid API Key" #4818
-
Hey folks. I spent several hours yesterday trying to figure out why I keep getting the error, but to no avail. This is my last resort. I found some other discussions from last year where people had issues using their etherscan api key on goerli, but apparently that was on etherscan's side. People said there was a banner on etherscan saying they were aware of the problem and were fixing it. There's no banner now, so I'm guessing the issue must be in my code somewhere, which I'll post below. Perhaps someone here can spot the issue that's been eluding me. Sorry for the screenshots. Wrapping the code in backticks didn't work. .env file hardhat.config.js file deploy.js file |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Forgot to post the error... |
Beta Was this translation helpful? Give feedback.
-
@wikisi9 For the API Key value in the hardhat config file you have added the string value and forgot to add the actual variable of ETHERSCAN_API_KEY. |
Beta Was this translation helpful? Give feedback.
@wikisi9 For the API Key value in the hardhat config file you have added the string value and forgot to add the actual variable of ETHERSCAN_API_KEY.