This release adds support for verifying contracts in chains that are not included by default in hardhat-etherscan
.
To do this, you add the network you want to verify in the customChains
entry of the Etherscan configuration:
etherscan: {
apiKey: {
customNetwork: "<custom-network-api-key>"
},
customChains: [
{
network: "customNetwork",
chainId: 12345,
urls: {
apiURL: "https://api-custom-network.etherscan.io/api",
browserURL: "https://custom-network.etherscan.io"
}
}
]
}
You can read more about this here.
Thanks to @no2chem for the initial implementation and to @calvinaco who helped test this.