Skip to content

Error Verifying on Etherscan - Solved #898

Answered by hobbescodes
krakxn asked this question in Q&A
Discussion options

You must be logged in to vote

Recently ran into this issue as well when I attempted to verify a contract's source code on rinkeby. I adjusted the etherscan object in the hardhat config like so:

etherscan: {
        apiKey: {
            rinkeby: ETHERSCAN_API_KEY,
        },
        customChains: [
            {
                network: "rinkeby",
                chainId: 4,
                urls: {
                    apiURL: "https://api-rinkeby.etherscan.io/api",
                    browserURL: "https://rinkeby.etherscan.io",
                },
            },
        ],
    },

this was a suggestion given in the hardhat documentation for the etherscan plugin under the adding support for other networks section: https…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@krakxn
Comment options

Answer selected by krakxn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants