Deploying a smart contract to a test network using Hardhat
We have successfully deployed a smart contract to a test network using Truffle. We can do the same using a different tool: Hardhat. Let’s install Hardhat in the next section.
Installing Hardhat
We’ve walked through the steps to install Hardhat before, so we will not go into the details again here.
We can also find an extension to provide Hardhat support in VS Code. Please install the following Solidity extension on VS Code:
Figure 13.19 – Solidity extension
Next, let’s create an account on Alchemy.
Creating an account on Alchemy
If you don’t have an account with Alchemy, please follow the next steps to sign up. We will need information from Alchemy in our deployment steps:
- Go to https://www.alchemyapi.io.
- Sign up and choose the Ethereum chain.
- Once done with the sign-up, navigate to the Dashboard tab at the top of the page and note...