Ethereum Development Framework
Hardhat is a development environment used to compile, test, debug, and deploy Ethereum smart contracts.
Build smart contracts faster โก Test contracts locally ๐งช Deploy to testnets/mainnet ๐ Debug transactions ๐
Local blockchain network ๐ฅ๏ธ Built-in testing framework ๐งช Console debugging ๐ Plugin system โ๏ธ
npm install --save-dev hardhat npx hardhat
Write Contract โ Compile โ Test โ Deploy โ Verify
Hardhat Network = Fake Ethereum blockchain Used for testing without real money ๐ฐโ
describe("Contract", function () {
it("should store value", async function () {
// test logic
});
});
Deploy to: - Sepolia testnet ๐งช - Ethereum mainnet โ๏ธ