In this article, I will show how to use the plugin in the Remix to verify contracts automatically. It is simpler and more convenient, so now follow me to have a look how to do this.
Deploy your contracts:
I assume that you already know how to use the Remix to deploy your contracts, if you really do not know how to do this, I think you can have a look at this tutorial: Create an ERC20 using Remix, without writing Solidity - Smart Contracts / Guides and Tutorials
Verify contracts
Once you have deployed you contracts via the Remix, you can also use the plugin in it to verify contracts.
Firstly, click the Plugin manager
on the left side of the page, then find the plugin Etherscan - Contract verification
in the Inactive Modules
and click the button Activate
to use it, just like:
Then the plugin Etherscan - Contract verification
will show at the left side of the page, click it and you will find a blank input box, you need to fill in the Etherscan API Key, and then click the button to save the API key like following:
The last step, choose the contract you want to verify, if your contract has constructor arguments
, you can use this tool: https://abi.hashex.org/ tp encode the arguments, and then specify the contract address, ok, now, just click the button Verify Contract
like following:
Ok, you need to wait for a moment to verify your contracts, and if everything goes well, you contract will be verified like following: