smartdiffer

Tool to compare smart contracts source code.

Heavily relies on API of Etherscan and Diffchecker.

Installation

pip install smartdiffer

API keys

In order to use smartdiffer you need to obtain Etherscan Api-Key. Put it inside api_keys.json file under your home directory.

The file should look like this:

{
  "etherscan": "",
  "diffchecker": ""
}

Usage

Provide two sources you wish to compare. Source is either address of a smart contract on ethereum mainnet or path to a local file.

smartdiffer 0x0123456789abcdef0123456789abcdef01234567 path/to/local/file

On the completion you'll get a link to the diff on diffchecker.com.

GitHub

GitHub - skalermo/smartdiffer: Tool to compare smart contracts source code
Tool to compare smart contracts source code. Contribute to skalermo/smartdiffer development by creating an account on GitHub.