Verifying contracts on Etherscan

Kaven Choi
Aug 28, 2018 · 2 min read

To update token information on Etherscan, the token contract address for the token must be verified. This is to ensure that the contract code is exactly what is being deployed onto the blockchain and also allows the public to audit and read the contract. Etherscan ensures that all token contract must be verified before they can be updated with information submitted by the contract owner.

If you are the contract owner and would like to verify your contract, kindly follow the steps below:

1. Verify and Publish

Under the contract address, next to the “Transaction” tab, you will be able to find the “Code” tab. Then click on “Verify And Publish.”

Image for post
Image for post

2. Verify Contract Code

For Truffle deployed contracts, contract owner can use Etherscan’s new Beta Source Code Contract Verifier which supports the ‘run’ option on top of the verify contract code page.

Image for post
Image for post

Entered the required information, contract name of the contract, the compiler version, optimization option and entered the complete contract code. The contract code should be as deployed, in a single file, flatten and all imports to be removed.

The constructor argument and other libraries can also be entered at the bottom of the same page.

Image for post
Image for post

Before clicking on the Verify And Publish button, kindly complete the reCAPTCHA and the contract should be verified.

3. Confirm Contract Details

Image for post
Image for post

When the contract has been verified, the “Code” page will be filled with the contract details. The source code of the contract is now publicly available on Etherscan.

Etherscan Blog

Etherscan is the leading Ethereum Blockchain Explorer.

Kaven Choi

Written by

Community Support Specialist at Etherscan

Etherscan Blog

Etherscan is the leading Ethereum Blockchain Explorer. The core of Etherscan involves extracting data from the Ethereum distributed ledger, indexing and displaying the processed data in a concise and readable manner for the masses and layperson.

Kaven Choi

Written by

Community Support Specialist at Etherscan

Etherscan Blog

Etherscan is the leading Ethereum Blockchain Explorer. The core of Etherscan involves extracting data from the Ethereum distributed ledger, indexing and displaying the processed data in a concise and readable manner for the masses and layperson.

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store