Completed as part of Alchemy's "Road to Web3"
This code is for the Tutorial Optimism L2 - Blockchain Betting Game With LOW Gas Fees
This was week 8, building a betting game on optimism-goerli.
- fork this project
- open https://gitpod.io/workspaces and select the project you forked
- run
npm install dotenv --save
- create a new file
.env
- Write these in the .env
URL="<YOUR_API_URL>"
MNEMONIC="<YOUR_PRIVATE_KEY>"
- make sure you have eth on optimism goerli
- enjoy the game
Thanks to @MSBivens for the original project