Requirements
Before you begin, install a Node.js version supported by your Hardhat version:- Hardhat 2: Node.js v20.0.0 or later
- Hardhat 3: Node.js v22.13.0 or later
If you are on Windows, we strongly recommend using WSL 2 when following this guide.
- Hardhat 2
- Hardhat3
1. Create a new Hardhat project
Clone the repository to your machine using the command below:2. Install dependencies
3. Create an .env file
.env file with your private key:4. Deploy the smart contract
The following commands use Hardhat Ignition:Deploying to the local hardhat node
Run hardhat node by running:Deploying to Monad Testnet
Ensure your private key is set in the.env file.Deploy the contract to Monad Testnet:Deploying to Monad Mainnet
Ensure your private key is set in the.env file.Deploy the contract to Monad Mainnet:
