Access the source code of Ethereum smart contracts deployed on Etherscan through a convenient ephemeral instance of Visual Studio Code by modifying the URL from .io to .deth.net. This allows for a comfortable browsing experience of the contracts.

How to use ?

While browsing smart contract code on Etherscan just change URL from .io to .deth.net. This will open Visual Studio Code instance and fetch the verified code using Etherscan API.

Or save the following code snippet as a bookmarklet to quickly go from any supported chain explorer to DethCode. 

javascript: location.href = location.href.replace(/\.\w+(\/)/, ".deth.net/")

Features of DethCode

 Here's how you can use it effectively with its numerous features:

  1. Frictionless Usage: You can effortlessly access the source code of Ethereum smart contracts by making a simple adjustment to the URL while browsing Etherscan. Changing the domain from .io to .deth.net provides you with this functionality.

  1. Proxy Support: The system is equipped with proxy support, which means it can intelligently track and follow proxies associated with the smart contracts. This ensures that you're presented with the implementation source code for the contracts, even if they are utilized through proxy addresses.

  1. Multichain Compatibility: The solution is versatile and caters to various Ethereum instances. Whether you're dealing with testnets, Layer 2 solutions, or Layer 1 mainnets, the tool supports multiple chains. This inclusive approach ensures that you can comfortably explore and interact with contracts across different Ethereum chains.

Purpose of DethCode

Navigating through contracts on Etherscan has proven to be less than optimal, especially when dealing with multi-file contracts. Challenges include restricted search capabilities, unconventional syntax highlighting, and various other limitations. Additionally, the process of obtaining onchain code for local browsing via a git repository is hindered by difficulties in pinpointing the precise commit that corresponds to the onchain version.

The creation of DethCode stemmed from a sense of dissatisfaction with these obstacles. Its purpose is to address and rectify these shortcomings comprehensively. Furthermore, DethCode enhances the user experience by seamlessly tracing the execution of proxies and similar elements in the implementation process.

Follow these examples to learn more 

We have listed some of the most important examples if you are a beginner and want to learn DethCode:

  1. Official github repo

Conclusion

In conclusion, DethCode emerges as a valuable solution to the challenges encountered while browsing Ethereum smart contracts on platforms like Etherscan. This innovative tool provides a seamless and enhanced experience, enabling users to access and explore contract source codes efficiently. By modifying the URL from .io to .deth.net, users can instantly open a dedicated instance of Visual Studio Code, facilitating comfortable contract browsing.

Frequently Asked Questions

Q1. What is DethCode and how does it enhance the Ethereum contract browsing experience?

Answer:DethCode is a tool that allows users to access Ethereum smart contract source codes conveniently by modifying the Etherscan URL. It opens a dedicated instance of Visual Studio Code for a more comfortable browsing experience, addressing challenges like limited search capabilities and unconventional syntax highlighting.

Q2.  How can I start using DethCode to view Ethereum smart contract source codes?

Answer: Using DethCode is simple. While browsing a smart contract on Etherscan, change the URL from .io to .deth.net. This action will trigger the opening of a Visual Studio Code instance that fetches the verified code using the Etherscan API.

Q3. What role does proxy support play in DethCode?

Answer: DethCode offers proxy support, which means it intelligently follows and displays the implementation of proxies associated with smart contracts. This ensures users can access accurate source codes even when contracts utilize proxy addresses.

Q4. Is DethCode compatible with different Ethereum chains?

Answer: Yes, DethCode supports various Ethereum instances, including testnets, Layer 2 solutions, and Layer 1 mainnets. This makes it versatile and accommodating for users exploring and interacting with contracts across different chains.

Q5.What motivated the creation of DethCode and its purpose?

Answer: DethCode was born out of frustration with the limitations of traditional contract browsing methods, especially for multi-file contracts. Its purpose is to comprehensively address these issues by offering an improved user experience and a more effective means of navigating Ethereum contracts. Additionally, DethCode enhances the browsing experience by tracing proxies and similar elements within the contract implementation process.