Using Hardhat
This page describes how to deploy smart contracts using Hardhat.
Last updated
Was this helpful?
This page describes how to deploy smart contracts using Hardhat.
Last updated
Was this helpful?
Hardhat is a development environment for Ethereum software. It consists of different components for editing, compiling, debugging and deploying your smart contracts and dApps, all of which work together to create a complete development environment.
Hardhat documentation, see:
Install
To create a new Hardhat project,
Select Create a TypeScript project
then press enter to confirm the project root.
Select y
for both adding a .gitignore
and loading the sample project.
Update your project’s hardhat.config.ts
file by adding Kroma Mainnet as a network:
create a .env
file with the following content
( It is critical that you do NOT commit this to a public repo)
Finaly, Run it using npx hardhat run