hello-world-tutorial

This is the example code repository for the Alchemy Hello World tutorial series (parts 1, 2, 3).

YouTube Playlist

Setup

You can clone this repo and get going right away.

Just make sure to:

  • run npm install to set up all the dependencies (hardhat, ethers, etc.)
  • rename .env-example to .env and then fill in the environment variables with your own info
  • set up an Alchemy account here
  • set up a Metamask wallet with fake testnet ether

And then you should be able to:

  • run npx hardhat run scripts/deploy.js to deploy the contract to the Ropsten testnet
  • run npx hardhat run scripts/interact.js to read and write a new message to the smart contract on Ropsten
  • run npx hardhat verify --network ropsten <your deplooyment address> 'Hello World!' to verify your contract on Etherscan