Track gas consumption in transactions on the Ethereum blockchain with Hardhat
Hardhat’s hardhat-gas-reporter
plugin (https://www.npmjs.com/package/hardhat-gas-reporter) provides gas information during test suite execution:
- Gas consumption per unit test,
- Metrics for deployments and method calls,
- Deployment and usage costs in local currency.
To use this plugin, we will:
- Create a Hardhat project,
- Create a smart contract,