This is a chatting Daap similar to WhatsApp, where you can chat with your friends by adding their wallet id. All the chats are stored on the blockchain which means your chats are more secure.
Chatting DAAP Hosted link steps for using chatting dapp
- configure your metamask for fuji c test net
- Click on connect to metamask button to connect your dapp with fuji c chain
- Click on new chat button then add your friend's public wallet id (configured at fuji chain) and friend's name
- now you can send messages to your friends but each transaction will cost gas fees.
clone this project locally
install dependencies for react
npm install
configuration for adding fugi testnet inside metamask wallet
Network Name: Avalanche FUJI C-Chain
New RPC URL: https://api.avax-test.network/ext/bc/C/rpc
ChainID: 43113
Symbol: AVAX
Explorer: https://testnet.snowtrace.io/
Since we are using blockchain we need to pay tokens for sending every message because every activity on blockchain costs some tokens. Now we will bring some test tokens for the avalanche network by using the faucet, where we have to add our wallet address and request for avax coin.
https://faucet.avax.network/
Now start the react project which we have cloned locally
npm start
Now we can use this chatting dapp at http://localhost:3000/
connect your metamask wallet by pressing on connect to metamask button. we have already configured our wallet with fuji c chain so after pressing on connect to metamask button, metamask will connect our daap with fuji c chain.
Now we need to add our friend's name and public wallet address by pressing on add new chat button (friends wallets need to be configured at fuji c chain).
for chatting with your friend we need to pay gas fees every time we send a message. Whenever we send any message to any friend, our metamask will open with a transaction detail and ask for approval.
you can find a .env file which consists deployed smart contract address. you can change it by deploying it yourself