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,

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store