Getting Started
- Initialize a new project:
npx hardhat initand choose a JavaScript or TypeScript project template. - Write your Solidity smart contracts in the
contracts/directory. - Write tests using Mocha, Chai, and ethers.js in the
test/directory and run them withnpx hardhat test. - Deploy contracts using Hardhat Ignition or custom scripts with
npx hardhat ignition deploy.
Key Features
- JavaScript/TypeScript workflow write tests, scripts, and deployment logic in familiar JavaScript or TypeScript.
- Hardhat Network built-in local Ethereum network with console.log debugging, stack traces, and mainnet forking.
- Rich plugin ecosystem extends functionality with plugins for ethers.js, Etherscan verification, gas reporting, and more.
- Hardhat Ignition declarative deployment system for reproducible, verifiable smart contract deployments.
- Mainnet forking test against real chain state by forking Ethereum mainnet or any EVM chain locally.
- Solidity debugging provides clear error messages, stack traces, and console.log support within smart contracts.
// related tools
Foundry
Ethereum / Developer Tools
Blazing fast Ethereum development toolkit written in Rust
oss
web git
Aave
Ethereum / Lending & Borrowing
Leading decentralized lending protocol across multiple chains
oss
web git
Arbitrum
Ethereum / Layer 2 Rollups
Leading Ethereum L2 rollup with the largest TVL and ecosystem
oss
web git