Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

GridChain — Secure P2P Energy Trading in Smart Microgrids

A blockchain-based peer-to-peer energy trading platform that enables producers ("prosumers") and consumers to trade energy securely and transparently using Ethereum smart contracts.

Tech Stack

  • Solidity (Smart Contracts)
  • Ethereum — Sepolia Testnet
  • Remix IDE — Development & Deployment
  • MetaMask — Wallet Authentication
  • keccak256 Hashing — Cryptographic Transaction Verification

Features

  • Peer-to-peer energy trading between producers and consumers via smart contracts
  • EnergyTrading.sol, EnergyBilling.sol, and TransactionVerifier.sol contracts deployed on Ethereum Sepolia Testnet
  • MetaMask wallet integration for secure, decentralized user authentication
  • Role-based access control to prevent unauthorized operations
  • Cryptographic transaction verification using keccak256 hashing to ensure data integrity
  • Web-based dashboard for managing energy listings and monitoring blockchain transaction records

Project Structure

GridChain-Project/ ├── 1. Project Report/ ├── 2. Project Presentation/ ├── 3. Documentation/ ├── 4. Smart Contracts (Code)/ │ ├── EnergyTrading.sol │ └── EnergyBilling.sol ├── 5. Web Dashboard/ ├── 6. Testing and Deployment/ └── 7. Media/

How It Works

  1. Users register as Prosumers (producers/sellers) or Consumers (buyers)
  2. Prosumers deposit energy and create sell offers with a set price per kWh
  3. Consumers deposit funds and purchase energy from active offers
  4. Every transaction is recorded on-chain and cryptographically verified for transparency and tamper-resistance
  5. Platform statistics (total energy traded, active users, etc.) are tracked on-chain

Deployment

Contracts were deployed and tested on the Ethereum Sepolia Testnet using Remix IDE and MetaMask. Deployment and testing steps are documented in the Testing and Deployment folder.

Author

Syed Zeeshan Ali BS Computer Engineering — The University of Lahore LinkedIn

About

Blockchain-based P2P Energy Trading Platform - Solidity Smart Contracts

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages