TypeScript utils to calculate the CO2 emissions of an Ethereum wallet. Powered by the Etherscan.io API.
npm install ethereum-emissions-calculatorMade with ♥ by Offsetra.com for carbon.fyi.
Questions, comments, forks and PRs all very much appreciated!
License: NON-COMMERCIAL USE ONLY. Creative Commons BY-NC-SA.
To request a commercial-use license contact support@offsetra.com.
The total emissions are derived from the amount of gas used for each transaction.
See https://carbon.fyi/learn
The emission table needs periodic updating until Ethereum goes carbon neutral.
Download .csv gas used data from https://etherscan.io/chart/gasused and hashrate data from https://etherscan.io/chart/hashrate
To generate up-to-date emission data, run npm run update-emissions-data
Data is output to src/data/emissionsFactorTable.json as a set of 2-week average emissions factors (kilograms-co2-per-gas).