npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

etherscan-contract-downloader

v1.0.2

Published

> Inspired by [amimaro/smart-contract-downloader](https://github.com/amimaro/smart-contract-downloader)

Downloads

7

Readme

Etherscan Contract Downloader

Inspired by amimaro/smart-contract-downloader

Download source codes of verified contracts from Etherscan.

Installation

npm i -g etherscan-contract-downloader

Usage

Usage: etherscan-contract-downloader [options] <networkName> <contractAddresses...>

Arguments:
  networkName             The name of networks: (ethmain, rinkeby, ropsten, kovan, goerli, polygon, polygonTest, bsc, bscTest, arbitrumOne, arbitrumNova, arbitrumGoerli, fantom, fantomTest)
  contractAddresses       Verified contract address to download source code

Options:
  -d, --dir <dir>         Directory to save source code
  -k, --api-key <apiKey>  Etherscan API Key
  -h, --help              display help for command

Example

# uniswap v3 factory
etherscan-contract-downloader ethmain 0x1F98431c8aD98523631AE4a59f267346ea31F984 --dir ~/uniswap-v3

# uniswap v3 universal router
etherscan-contract-downloader ethmain 0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD --dir ~/uniswap-v3

# gains network contracts
etherscan-contract-downloader arbitrumOne 0x7edDE7e5900633F698EaB0Dbc97DE640fC5dC015 0x30d8C505516Ab7693e2DE491bdceB028d8ae7EbF 0xa3c13A8FBf49679df032d5cE8eFf2e46b3b8f560 0x4899FEfbf0a5C9881F1DffE6D13f758257298121 0x298a695906e16aea0a184a2815a76ead1a0b7522 0xde5750071CacA8db173FC6543D23d0BCACACFEC3 0xA03e32a42C75FDdDc9a39973ddd082F147393154 0x2e44a81701a8355e59b3204b4a9fe8fc43cbe0c3 0xd85E038593d7A098614721EaE955EC2022B9B91B  0x990BA9Edd8a9615A23E4c452E63A80e519A4a23D  0x673cf5AB7b44Caac43C80dE5b99A37Ed5B3E4Cc6  0x1759eD3BB9ecd661ebEcF4264f7677E09206ACE2  0xAA379DD7Ec0bae467490e89bB2055A7e01231b8f  0x04a5e3cf21B0080B72fAcDca634349A56982D497 0xf67Df2a4339eC1591615d94599081Dd037960d4b 0xcFa6ebD475d89dB04cAd5A756fff1cb2BC5bE33c --dir ~/gains-network