Skip to content

MayankSharma-ops/BlockChain-ChatDApp

Repository files navigation

🧠 Decentralized Blockchain Chat DApp

A production-grade peer-to-peer messaging platform built on Ethereum using smart contracts — no servers, no databases, fully decentralized.

Status License Built With Web3


🌐 Live Demo

🔗 Live App: https://chat-dapp-live.netlify.app/

🚀 Overview

This project demonstrates a complete end-to-end Web3 application where users communicate directly through blockchain transactions.

Unlike traditional chat apps that rely on centralized servers, this system stores relationships and messages on-chain, ensuring:

  • 🔐 Trustless communication
  • 🌐 Censorship resistance
  • 🧾 Immutable message history
  • 👛 Wallet-based identity

Designed to showcase real-world smart contract architecture + modern Web3 frontend engineering.


✨ Key Features

🔑 Authentication & Identity

  • MetaMask wallet login (no passwords)
  • On-chain account creation
  • Address-based identity system

👥 Social Layer

  • Add friends via public wallet address
  • Mutual friend relationship enforcement
  • Dynamic friend list retrieval

💬 Messaging System

  • Peer-to-peer blockchain messaging
  • Deterministic chat channels
  • Immutable message storage
  • Timestamped conversations
  • Real-time UI updates

🖥️ Frontend Experience

  • Responsive mobile-first design
  • Modern chat interface
  • Message alignment (sender vs receiver)
  • Attachment picker UI
  • Dismissible error handling
  • Optimized re-render performance

⛓️ Blockchain Integration

  • Smart contract-controlled state
  • Gas-efficient data structures
  • Multi-network support
  • Holesky / Sepolia compatible

🏗️ Architecture

User (MetaMask) │ ▼ Frontend (Next.js + React) │ ▼ Ethers.js / Web3Modal │ ▼ Smart Contract (Solidity) │ ▼ Ethereum Network(Mainnet/Testnet)

Try running some of the following tasks:

npx hardhat help
npx hardhat compile
REPORT_GAS=true npx hardhat test
npx hardhat node
npx hardhat run scripts/deploy.js --network localhost
npx hardhat run scripts/deploy.js

=======

⚙️ Local Setup

1. Clone Repository

git clone https://github.com/MayankSharma-ops/BlockChain-ChatDApp.git
cd BlockChain-ChatDApp

=======

Install Dependencies

npm install

Run Development Server

npm run dev

👨‍💻 Author

Mayank Sharma 🐙 GitHub: https://github.com/MayankSharma-ops

💼 Web3 / Full-Stack Developer

BlockChain-ChatDApp

0x5FbDB2315678afecb367f032d93F642f64180aa3

##LICENSE MIT Liscense

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors