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

gas_fees

v1.1.6

Published

Generate report of gas fees paid for address over time period

Downloads

5

Readme

ETH Fees Report

Given a comma separated list of addresses or file with address list separated by newline, generate a report on the transaction fees paid per address.

The executable requires setting environment variables INFURA_KEY (for web3), and ETHERSCAN_KEY (for pulling transactions per address).

Install from NPM

npm install -g gas_fees

Install from Source

git clone https://github.com/conscott/gas_fees.git
cd gas_fees
npm install
npm link

Usage

$ gas_fees -h

  Generate report of gas fees paid for address over time period

  Usage
    $ export INFURA_KEY=<infura key>
    $ export ETHERSCAN_KEY=<etherscan key>
    $ gas_fees <address or file with address list> --from-date <start_date> --to-date 2020-04-01 <end_date>

  Options
    --network,      -n   Ethereum Network (mainnet|ropsten|kovan)     (default: mainnet)
    --from-date,    -f   Filter transfers after from this date        (default: 2014-01-01)
    --to-date,      -t   Filter transfers before this date            (default: now)
    --show-usd      -u   Show fees paid in USD in report              (default: false)
    --sym           -s   If passed, compare gasFees to token price    (default: null)
    --out,          -o   The output filename                          (default: report.csv)

  Examples
    $ gas_fees 0x03d09c5a44addca5491f0d293ff927a4c5655f40 --from-date 2020-01-01 --to-date 2020-07-01
    $ gas_fees list_of_addresses.txt --from-date 2020-01-01 --to-date 2020-07-01

Output

The report is generated to ./report.csv

Example

$ ETHERSCAN_KEY=<hidden> INFURA_KEY=<hidden> gas_fees 0x03D09C5A44ADdCa5491F0d293ff927a4c5655F40 --network ropsten
info: Scanning ropsten for 1 addresses from block 1 (2016-11-20T11:48:50Z) to 8305529 (2020-07-16T13:28:23Z)
info: Found 144 transactions
info: 0x03D09C5A44ADdCa5491F0d293ff927a4c5655F40 paid 0.053375437784528048 ETH from block 1 to 8305529 in 144 transactions
Done processing.

Limitations

The Ethercan API will only return up to 10,000 transactions, and that is currently the largest report that will be generated.