·3 min read
Hey Hey Hey!
0Xlive is here 😃
in this tutorial we will talk about Hardhat and how to use it to compile and deploy our smart contracts on coinex smart chain network
Hardhat is a development environment to compile, deploy, test, and debug your Ethereum software. It helps developers manage and automate the recurring tasks that are inherent to the process of building smart contracts and dApps, as well as easily introducing more functionality around this workflow. This means compiling, running and testing smart contracts at the very core.
first of all we need to create a directory for our project.in terminal type:
cd hardhat // we changed directory to ‘hardhat’
and install hardhat in this directory:
npm install –save-dev hardhat
after installation we can run hardhat using npx :
Note: we run hardhat using npx because of local installation
when you run Hardhat it asks some question something like below:
$ npx hardhat