Adding a Way to Deploy the Contract

Learn how to deploy contracts on the blockchain.

Deploying contracts

To deploy our contract on the blockchain, we’ll need to have the JSON description of the contract’s Application Binary Interface (ABI). Luckily, this is something that Hardhat creates for us when it compiles the contract.

Inside the Hardhat project, find the artifacts/contracts folder. Inside, there should be a folder for our contract. Copy the JSON file in that folder to contract/Contract.json in our front-end project.

Get hands-on with 1400+ tech skills courses.