{"library":"eth-gas-reporter","type":"library","category":null,"description":"eth-gas-reporter is a Mocha reporter designed to provide detailed gas usage metrics for Ethereum smart contract unit tests. It helps developers optimize contract efficiency by displaying gas consumption per test, method calls, and deployments. The current stable version is 0.2.27 as of April 2026. While an explicit release cadence isn't stated, the changelog shows consistent updates over time, indicating active maintenance. Key differentiators include its integration with popular Ethereum development environments like Truffle and Hardhat (via a plugin), the ability to calculate real-world national currency costs, and CI integration via Codechecks for tracking gas changes across pull requests. It supports various tokens for price calculation like ETH, BNB, MATIC, AVAX, HT, or MOVR.","language":"javascript","status":"active","version":"0.2.27","tags":["javascript","Ethereum","solidity","unit-testing","truffle","gas."],"last_verified":"Wed May 27","install":[{"cmd":"npm install eth-gas-reporter","imports":["mocha: { reporter: 'eth-gas-reporter' }","mocha: { reporterOptions: { currency: 'USD', token: 'ETH' } }","require('hardhat-gas-reporter'); // in hardhat.config.js or buidler.config.js"]},{"cmd":"yarn add eth-gas-reporter","imports":[]},{"cmd":"pnpm add eth-gas-reporter","imports":[]}],"homepage":null,"github":"https://github.com/cgewecke/eth-gas-reporter","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/eth-gas-reporter","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/eth-gas-reporter/compatibility"}}