A 2D top-down - racing game, embracing the power of web3.0 to mint your own car and take part in exciting races.
-
Install all the dependencies -
npm install
-
Create an account on Alchemy, then create a new app and select "Rinkeby" as a network.
-
Create a
.env
file in the root folder and add the following variables:
API_URL=<ALCHEMY_API_URL>
API_KEY=<THE_LAST_PART OF_THE_API_URL>
PRIVATE_KEY=<YOUR_WALLET'S_PRIVATE_KEY>
CONTRACT_ADDRESS=<DEPOLOYED_TOKEN_ADDRESS>
REACT_APP_CONTRACT_ADDRESS=<DEPOLOYED_TOKEN_ADDRESS>
Hint: You can get your own API key in the alchemy dashboard. The last part can be added after deploying the token.
run npx hardhat compile
command.
Run npx hardhat run scripts/deploy.js --network rinkeby
command.