A nodejs program that fetches and processes your payouts from Ethermine!
- Fetches transactions from both Ethereum and Polygon networks.
- Fetches the historical ethereum price on the payout date from Coinbase.
- Calculates the USD value of the payout at that specific date (useful for tracking taxable events).
- Calculates the total ETH and (time-corrected) USD value of the payouts.
- Supports restricting payouts to a specific date range.
- Supports displaying any currency that Coinbase supports.
First, download the ZIP file for this program or use Git:
git clone https://github.com/doublej472/ethgettx.gitThis program requires NodeJS and NPM, once installed you will need to install the package dependencies with:
npm installNow you can run the program with:
nodejs index.js <your miner address here>
Or if you wanted to restrict it to a certain date range:
nodejs index.js <your miner address here> --startdate=2021-1-1 --enddate=2021-6-12
Or if you want to use a different currency than USD:
nodejs index.js <your miner address here> --currency=GBP
This works by fetching transaction data for your account from Etherscan and Polygonscan. For each transaction, we get the price data for Ethereum on that specific date from Coinbase.
The source code should be relatively simple to understand if you have worked with async javascript, everything is in the index.js file, and the only dependencies are Axios and Minimist.
Feel free to open an issue here. If you want to add a feature / fix a bug / clean up my bad code then open a pull request!
Fuel my caffeine addiction here!
Ethereum address: 0x21aDD3C1B18B5877D625beD418A77B9e1b89E7a9
Matic / Polygon address: 0x21aDD3C1B18B5877D625beD418A77B9e1b89E7a9