View source of deployed Ethereum smart contracts in VS Code
While on Etherscan, change .io
to .deth.net
and browse contracts comfortably in ephemeral VS Code instance
💸 Enjoy using DethCode? Consider funding development via GitCoin 💸
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/")
- frictionless - just tweak URL while browsing etherscan
.io
->deth.net
- proxy support - automatically follows proxies and displays implementation source code
- multichain - supports different etherscan instances: testnets, L2s, L1s (all supported chains)
Browsing contracts directly on etherscan sucks! Browsing multi-file contracts on etherscan sucks even more. Limited search, weird syntax highlighting, and many, many more. Finally, it's often impossible to just git clone repository and browse source code locally because it's hard to find the exact commit that matches onchain code.
DethCode was born out of frustration, and it's here to fix all of these issues. In addition, it improves the experience by automatically following the implementation of proxies and so on.
- Arbitrum ERC20 Gateway on mainnet: dethcode | etherscan
- Arbitrum ERC20 Gateway on arbitrum: dethcode | arbiscan
- Optimism L1CrossDomainMessenger: dethcode | etherscan
- Dai Stablecoin: dethcode | etherscan
Check out our contributing guidelines
Follow us on Twitter!