Skip to main content

hardhat

Enables efficient Ethereum smart contract development with compiling, testing, and deployment capabilities using Hardhat.

Install this skill

or
87/100

Security score

The hardhat skill was audited on Mar 1, 2026 and we found 5 security issues across 2 threat categories. Review the findings below before installing.

Categories Tested

Security Issues

medium line 32

Access to .env file

SourceSKILL.md
32To set up a Hardhat project, run `npx hardhat init` in a new directory, then add your Solidity files to the `contracts` folder and tests to `test`. For workflows, always configure hardhat.config.js fi
low line 46

Access to .env file

SourceSKILL.md
46module.exports = { networks: { goerli: { url: process.env.GOERLI_RPC_URL, accounts: [process.env.PRIVATE_KEY] } }, solidity: "0.8.17" };
medium line 58

Access to .env file

SourceSKILL.md
58Common issues: Invalid private keys – ensure format with `ethers.utils.isHexString(process.env.PRIVATE_KEY)`. For RPC failures, verify URLs and add retries: use `hre.network.provider.send("eth_getBala
low line 51

External URL reference

SourceSKILL.md
51Integrate Hardhat with ethers.js by installing `@nomiclabs/hardhat-ethers` and importing it in scripts for wallet and provider management. For CI/CD, use it with GitHub Actions: add a step like `npx h
low line 73

External URL reference

SourceSKILL.md
73Set env vars: `export PRIVATE_KEY=0xYourKey && export GOERLI_RPC_URL=https://goerli.infura.io/v3/your-key`. Run: `npx hardhat run scripts/deploy.js --network goerli`.
Scanned on Mar 1, 2026
View Security Dashboard
Installation guide →