Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including embark-etherscan-verifier with all npm packages installed. Try it out:

var embarkEtherscanVerifier = require("embark-etherscan-verifier")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

embark-etherscan-verifier v4.0.0

Embark plugin to flatten and verify solidity contracts on Etherscan


Plugin for Embark to flatten and verify contracts on Etherscan


In your Embark dapp directory:

npm install embark-etherscan-verifier --save or yarn add embark-etherscan-verifier

then add embark-etherscan-verifier to the plugins section in embark.json:

  "plugins": {
    "embark-etherscan-verifier": {}



In the console, type flatten or flatten ContractName(s)

  • flatten: Flattens all contracts
  • flatten ContractName(s): Flattens the specified contract(s). For multiple contracts, separate them using a comma.
  • Example: flatten SimpleStorage,Token


You can also automatically verify on a valid network (mainnet, ropsten, rinkeby, kovan)

In the console:

  • verify <API_KEY> <contractName>: Verifies the specified contract (flattens if it was not done before)
    • You need an Etherscan API key. You can find a simple tutorial here
    • Example: verify YOUR_KEY SimpleStorage


  • Embark 4.0.0 or higher
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free