Skip to content

Instantly share code, notes, and snippets.

@mds1
Created June 17, 2018 14:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mds1/315ff344c8d8bbe510b12fc6d8bcab77 to your computer and use it in GitHub Desktop.
Save mds1/315ff344c8d8bbe510b12fc6d8bcab77 to your computer and use it in GitHub Desktop.
Verifying Contract on Etherscan
1. Head to the contract’s page on Etherscan, click the “Code” tab, click “Verify and Publish”
2. Click to try the “new Beta Source Code Contract Verifier” (note that Etherscan does not
support imports, so if your contract uses imports you will need to concatenate the code
into a single file)
3. Follow the steps shown on that page to verify and publish. To ensure you choose the right
compiler version, after compiling your contract with truffle open up ContractName.json and
find the line that looks like this:
"compiler": {
"name": "solc",
"version": "0.4.23+commit.124ca40d.Emscripten.clang"
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment