track gas incurred by contributors
You'll need the following to get started:
- Etherscan API key
-
Install dependencies
npm install
-
Create a
.env
file and setETHERSCAN_API_KEY
to your Etherscan API key. -
Run a script.
npm run getTotalGasSpend -- 14561235 15481186
Calculate how much gas Peel contributors spent on tap
(distribute) transactions, from a given block.
npm run getJuiceboxGasSpend -- <start-block>
Calculate how much gas Peel contributors spent on executing multisig transactions, from a given block.
npm run getMultisigGasSpend -- <start-block>
Calculate how much gas Peel contributors spent on transactions, from a given block, across the following types of transactions:
- PeelDAO multisig
tap
(distribute) transactions
npm run getTotalGasSpend -- <start-block> <end-block>