New Dev Utility — Automatically Verify Your Smart Contracts

Developers at Gnosis built a new tool and we want to share it

Eric Gorski
GnosisDAO
1 min readMay 13, 2019

--

Our developers built a utility library which automates the verification of smart contracts that were compiled and deployed with Truffle. And we want to share it with everyone.

What’s the best way to use it?

If you want to verify your contract right after deployment, you don’t need to install the library. Instead, you can simply use the following command:

API_KEY=<your_etherscan_api_key> npx verify-on-etherscan — network mainnet ./build/contracts/*

Alternatively, there are a few other ways to set up this utility, which are all outlined here.

Note that Etherscan supports Mainnet, Ropsten, Rinkeby and Kovan networks for verification and requires a valid Etherscan API key. And that the Etherscan API is currently in Beta, so it’s possible — and maybe even likely — that things will break.

You can see more details here.

Give it a shot! And let us know what you think.

--

--