github NomicFoundation/hardhat @nomiclabs/hardhat-etherscan@3.0.0
hardhat-etherscan v3.0.0

latest releases: hardhat@2.22.15, hardhat@2.22.14, hardhat@2.22.13...
2 years ago

This new major version includes one of our most requested features: the possibility to specify multiple API keys for the hardhat-etherscan plugin (#1448).

You can learn more here, but the bottom line is that you can now do this in your config:

etherscan: {
  apiKey: {
      mainnet: etherscanApiKey,
      rinkeby: etherscanApiKey,
      optimisticKovan: optimismEtherscanApiKey,
      polygonMumbai: polygonscanApiKey,
      arbitrumTestnet: arbiscanApiKey,
  }
}

Importantly, the name of these keys don't necessarily match the name of the network in your config. See the docs to learn which names need to be used for each chain.

Don't miss a new hardhat release

NewReleases is sending notifications on new releases.