This project is made following this instructions made by engineer cmmunity UNCHAIN
. This one is one of the best one to learn blockchain development.
This is dapp that you can send message and wave to the board. Also, if you're lucky, you can receive token(testnet token) from this contract.
-
run
yarn install
in terminal. -
make
.env
file underpackages/contract
and input yourPrivate Key
andAlchemy HTTP Key
like below.
PRIVATE_KEY = <YOUR_PRIVATE_KEY>
STAGING_ALCHEMY_KEY = <ALCHEMY_HTTP_KEY>
- run
yarn contract deploy
in terminal. The result would be like below.
Deploying contracts with account: 0x04CD057E4bAD766361348F26E847B546cBBc7946
Account balance: 272899657284590565
WavePortal address: 0x40aB7863b1b4987Df1e514cD99791d523AA128A4
- change the line 80 in
packages/client/src/App.js
.
const contractAddress = "YOUR_CONTRACT_ADDRESS";
-
replace the json file in
packages/client/src/utils/Web3Mint.json
with the content of the json file inpackages/contract/artifacts/contracts/Web3Mint.sol/Web3Mint.json
. -
Finally, run
yarn client start
in terminal and see how it works!