Replies: 2 comments 1 reply
-
I got the same issue, you could solve it ? |
Beta Was this translation helpful? Give feedback.
-
Hi @Exper-t and @bolisteward, API keys for block explorers must be created per chain (Etherscan API key works on Rinkeby and Goerli since they are all Ethereum chains, but it won't work for Polygon, Mumbai or BSC). Make sure you are using a correct API key for the chain you are working on. Version Hope this helps. |
Beta Was this translation helpful? Give feedback.
-
After restarting 3 times on version 2.4.2 I have again got this error after entering "yarn verify"+contract address+" --network truffle"
This is the error I get:
**"Error in plugin @nomiclabs/hardhat-etherscan: Invalid API Key
For more info run Hardhat with --show-stack-traces
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command."**
However I don't see what is wrong with my API key as it is made from the Etherscan.io website just as Hashlips did in this video: https://www.youtube.com/watch?v=Zhmj4PiJ-GA
at the time 50:50
Could someone please help me solve this.
Many Thanks
Beta Was this translation helpful? Give feedback.
All reactions