Contract Code Viewer is a VS Code extension that allows you to download contract codes from various blockchain explorers and view them locally. This is useful for developers who want to inspect the source code of smart contracts deployed on different blockchains.
Contract Code Viewer supports downloading contract codes from the following blockchain explorers (as of 2023-03-03):
Blockchain Explorer | Availability |
---|---|
https://etherscan.io | ✔️ |
https://polygonscan.com | ✔️ |
https://bscscan.com | ✔️ |
https://ftmscan.com | ✔️ |
https://snowtrace.io | ✔️ |
arbiscan.io | ✔️ |
optimistic.etherscan.io | ✔️ |
Some features that make Contract Code Viewer stand out are:
- It automatically detects the blockchain explorer based on the URL entered by the user
- It saves the contract files in a folder named after the contract address
- It can download single-file or multiple-files contract codes
To use Contract Code Viewer, follow these steps:
- Use the command
Contract Code Viewer: Enter URL to the contract on explorer
- Input a valid URL to a contract on any supported blockchain explorer
- Select a folder where you want to save the contract files
- Click on “Open folder” to view the contract codes
- The extension can now download contract code from arbiscan.io and optimistic.etherscan.io.
- Fixed problem of contract downloading from etherscan.io.
@DocRace for the logo.
If you have any feedback, please feel free to contact me. You are also welcome to chat about Crypto with me on Twitter.