This is a simple script that can run with node.js to quickly fetch the source solidity code of a contract. To use it, you need to:
- Install node.js;
- install axios; npm install axios
- Get your free etherscan API.
Also note:
- This only works on verified contracts.
- This is for ETH mainnet. If you want to use it for other EVM chains, change the API_KEY and URL accordingly.