# HardHat

&#x20;         This section will guide you through deploying the Counter smart contract on the ICB Network using [Hardhat](https://hardhat.org/).

&#x20;         Hardhat is a powerful development environment for Ethereum and EVM-compatible blockchains like **ICB**. It offers a robust framework for compiling, testing, deploying, and debugging smart contracts. With features like a built-in local Ethereum network, Solidity stack traces, and seamless plugin integration (e.g., with Ethers.js and OpenZeppelin), Hardhat simplifies the entire smart contract development workflow.

## Objectives

By the end of this tutorial, you should be able to do the following:

* Set up Hardhat for the **ICB Network**
* Create a simple Counter smart contract
* Compile the smart contract for deployment on **ICB**
* Deploy the Counter contract to the **ICB Mainnet** and **Testnet**
* Interact with the deployed contract using Hardhat scripts

&#x20;         This tutorial will help you understand the end-to-end workflow of building and deploying smart contracts on an EVM-compatible blockchain like **ICB**.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.icb.network/build-on-icb-network/hardhat.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
