P2P Energy trading platform built on top of Ethereum and Chainlink
The current energy market is characterized by centralization, a lack of transparency, and limited accessibility. Consumers have limited visibility into the sources of their power and few options for controlling their consumption. Furthermore, producers of renewable energy have limited opportunities to sell their surplus energy back to the grid. This system limits the adoption of renewable energy sources and inhibits innovation in the energy sector.
EnergySwap is a decentralized, peer-to-peer energy trading platform leveraging blockchain and IoT technology. Our solution allows for transparent, direct trading of energy between producers and consumers. Producers can sell their excess energy directly to other users, allowing for increased revenue streams and promoting the use of renewable energy. Consumers gain the ability to choose their energy sources and control their consumption more directly.
Our initial target market includes owners of residential solar power installations and electric vehicle charging stations. These individuals are likely to produce excess energy that they could sell on our platform. We will also target eco-conscious consumers who are interested in purchasing green energy directly from these local producers.
On a broader scale, we aim to target all energy consumers and producers, as we believe our platform provides advantages for everyone by creating a more open and efficient energy market.
Our primary goal is to disrupt the traditional energy market by providing a decentralized and transparent platform for energy trading. We aim to achieve a significant share of the energy trading market within our target demographic within the first five years.
In doing so, we hope to promote the adoption of renewable energy sources, improve energy efficiency, and contribute to sustainability. We measure our success not just in terms of market share and revenue, but also in terms of our impact on the environment and society.
To get a local copy up and running follow these simple example steps.
Follow these prerequisites to get your local copy all set up.
- change directory to backend
cd backend/
- change directory to nest-app
cd nest-app/
- add a .env file with the following and add in your respective keys
PRIVATE_KEY= <enter your private key>
INFURA_API_KEY= <enter your private infura api key>
USER_CONTRACT_ADDRESS=0x9970aDd8bAf8a071395D4932B8Cd9C13ef2e3544
MARKET_CONTRACT_ADDRESS=0x1F6D603a28e00DFc5C5b03b81a5f2797FdF36C97
ENERGY_DATA_CONTRACT_ADDRESS=0xc6aaDEc9238CDC375129B38a81332B18DF1515ae
OPERATOR_ADDRESS=0xec39A0C27b4E7F6c5a02F6AA52F7153Cf8C210f1
aws_access_key_id= <enter your private aws access key>
aws_secret_access_key= <enter your private aws secret access key>
- install required packages using npm
npm i
- run the backend server
npm run start:dev
- change directory to frontend
cd frontend/
- install required packages using npm
npm i
- run the frontend
npm run dev
- Clone the repo to your local machine
git clone https://github.com/EmperorRP/EnergySwap.git
EnergySwap enables users in a locality to exchange energy(electricity) amongst each other through their local grid hence making it a peer to peer electricity exchange.
User flow for seller/producer/prosumer: Electricity gets produced by the producer at his unit(house). Then it is sent to the local grid from which it can reach the buyers.
User flow for buyer: Buyer goes to the listings page and buys energy immediately from the seller they want. The grid is notified and makes sure to allot that much electricity to the buyer's house.
- Nevan D'Souza - Nevan D'Souza
- Rahul Pujari - Rahul Pujari