New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

etherscan-src

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

etherscan-src

⏬🚀 Fetch the most up-to-date source of a verified Smart Contract from Etherscan in seconds!

1.0.0
Source
npm
Version published
Maintainers
1
Created
Source

etherscan-src

npm package Build Status Downloads Issues Commitizen Friendly Semantic Release

⏬🚀 Fetch the most up-to-date sources of verified Smart Contracts (including proxy implementations) from Etherscan in seconds!

Usage

CLI

  • Fetch the sources of a contract from an address and save it to sources/ContractName/:
npx etherscan-src 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984
  • Note that if a standard proxy is detected, the proxy's implementation sources will be fetched instead:
npx etherscan-src 0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9
  • You can optionally provide a target directory path, an Etherscan apiKey (to bypass the default query rate limit), or specify a network on which to query the Smart Contract's source code (by name or chainId, decimal or hexadecimal):
npx etherscan-src --target sources/uniswap/ \
    --apiKey ... \
    --network polygon \
    0xb33EaAd8d922B1083446DC23f610c2567fB5180f

Install

npm install etherscan-src
yarn add etherscan-src

Keywords

etherscan

FAQs

Package last updated on 24 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts