This is a sample hardhat project with eth-gas-reporter
- Create a sample hardhat project using
npx hardhat
- Download some dependencies:
npm i hardhat-gas-reporter
npm i dotenv
- create .env file as showed in _.env from the code above
- get your API key from https://coinmarketcap.com/api/pricing/
- get your API key from https://coinmarketcap.com/api/pricing/
- copy the hardhat.config.js from the code above
- enter the following command in terminal to see the results:
npx hardhat test