Etherscan To Sourcify

Verify smart contracts on Sourcify using source files on Etherscan.

Etherscan To Sourcify

Created At

ETHNewYork 2022

Project Description

Sourcify is a Solidity source files verification tools based on ipfs and Etherscan is a blockchain explorer supporting smart contract verification. Since Etherscan stores all smart contract code in a centralized server, Sourcify has been considered as a more decentralized solution and a lots of tools such as Metamask and Otterscan have been using Sourcify to provide a better UX. This project fetches smart contract source code already verified on Etherscan and verifies them on Sourcify so all the downstream toolings could benefit from it.

How it's Made

This project uses both Etherscan and Sourcify apis behind the scene. It fetches Etherscan smart contract source code using their public API and then converts the Etherscan format to Sourcify metadata format. Furthermore, it also adds Etherscan Data Source Attribution to follow Etherscan Term of Use. Finally, it will upload the metadata to Sourcify and the smart contract source code will be pined on IPFS. Etherscan also has a list of all open source smart contracts that are allowed to be redistributed as long as the data source is attributed, so it is possible to go through this list and verify all of them on Sourcify.

background image mobile

Join the mailing list

Get the latest news and updates