Robotics And Machine ANalytics Laboratory (RAMAN LAB) Malaviya National Institute of Technology Jaipur

Blockchain Technology for Decentralized Energy Transaction in a Smart Grid

The transformation of the power grid from conventional to smart is being driven by an underlying transition towards sustainability for which a secure and systematic way of integrating renewable and non-conventional energy resources is essential. Further, the internet-based smart grid is paving the way for a group of innovative technologies, collectively being called as the ‘energy internet’, to ensure that the demand for energy is met at any instant of time. Reiterating, the main objective of this change is to enable a sustainable energy system. The integration of Information Technology (IT) with Operational Technology (OT) is at the crux of a smart grid although, however, the integration and centralized management of various actors like smart meters, Renewable Energy (RE) sources, Distributed Energy Resources (DERs), loads, and Internet of Things (IoT) devices etc. is a major challenge. Accordingly, the smart grid is moving towards a decentralized paradigm from a centralized topology so as to effectively integrate more and more resources spread across time and space in such a way that quality services are delivered to the end customer without compromising on the integrity of all the stakeholders involved, including the utility grid. With a lot of energy and information related transactions happening over the smart grid, cyber-security is becoming equally crucial for which blockchain technology possesses several outstanding attributes that provide an excellent platform for smart grid security and privacy. In this article, a brief overview of blockchain for decentralized energy transactions in a smart grid setup has been provided.

Since the past decades, the conventional centralized energy systems have had various issues such as rising carbon emissions, losses in long-distance power transfer, and energy inefficient consumption at load-end alongside lack of consumer participation. The transition towards a sustainable energy system is being facilitated by solutions that address and highlight these challenges. The uses of DERs as well as improving the efficiency in energy consumption are two key fundamental solutions. To augment the strength and features of the smart grid, usage of distributed RE sources aided by intelligent control & communication technology and advance metering infrastructure makes the despatch, consumption and metering of green electricity much effective. The concept of the future grid has been envisioned, and is being implemented, as a new upgraded vision of the present grid which provides for bidirectional energy and information sharing over a trustworthy and secure platform to enhance the management of energy by integrating RE technology. It is being noticed that the present smart grid is facing several difficulties to improve the usage of DERs and manage integration of scalable energy resources (i.e., hydropower, geothermal) at a large scale [1,2]. There are also issues to ensure security and a reliable integration of other technologies to enhance the energy usage efficiency and reliability [3]. The energy internet is an amazing solution for meeting the future energy challenges since it can take care of the real-time status of all the actors in the system with the help of IoT devices, intelligent communication and IT-OT with consumer participation also included [4]. Such a technology-framework coupled with the elements of the utility system including electricity markets at the retail-level will enable consumers (including ‘prosumers’) to actively participate as ‘peers’ and optimize the overall energy balance in the system.

Accordingly, the next generation smart grid has been conceptualized with an aim to fulfil the following objectives for all participants as well as system components.

  1. Facilitate close interaction between the Peers.
  2. Enable and enhance self-deciding capability.
  3. Sharing of energy as well information in a different manner to optimize overall energy balance.
  4. To ensure full utilization of large-scale DERs.
  5. To possess the flexibility to integrate centralized as well as distributed energy sources.
  6. To facilitate bidirectional energy sharing between the prosumer and the grid, including flexible energy transfer.
  7. To enable and ensure just and equitable energy sharing in the local community between prosumers and consumers.

As discussed above, the main points regarding centralized energy system must now be miniaturized in a decentralized-distributed setup. The increasing democratization of energy also calls for market-driven forces to ensure the most appropriate value for ‘green’ power for a consumer/prosumer.

Recently, the Energy Internet has presented itself as an improved variant of the present smart grid system with a powerful capability to collect, refine and analyse the information on energy generation and consumption, and economics so as to optimize the overall energy balance and operating costs for the stakeholders involved. The main goal of the Energy Internet is being seen as the capability to overcome the present smart grid limitations and to a build a fully automated intelligent power system. The basic idea being that energy generation and consumption related information and utility-grid component status and market information is shared with each participant in a transparent yet secure and trust-worthy manner. Local generating units, real-time demand, microgrid and DER operational information, energy storage units, local community generation, consumers, and local energy markets etc are identified as the main actors.

A decentralized energy network provides for excellent features such as bidirectional energy and information flow between consumers/ prosumers and the utility at the local community level. Future energy systems are expected to witness an increase in the count of prosumers and consumers in a decentralized energy sharing landscape. As such, prosumers would be capable of sharing their excess generation with nearby peers. This type of energy flow supports in reduction of on-grid peaks, reduces power transmission losses, and matches supply-demand at the local level so as to allow the utility operator more observability and flexibility in power scheduling operations. The prosumer can trade directly with others without any third-party involvement and at very low transaction costs. This is where the distributed ledger technology or the blockchain would be of utmost importance. This type of trading, in general, will have some challenges, higher operational difficulties as well as regulatory issues and costs which will reflect onto prosumers, producers, and consumers. In addition, cyber-attacks, breach of data privacy and security and malicious decisions due to attacks can lead to third-party monopolies in ineffective operation of such local energy markets with inequitable distribution of rewards, incentives, and penalties. The key features of blockchain technology provides an excellent tool to create a more reliable decentralized and open energy market. A few pilots have already started in India for encouraging a digitally enabled local market-place in the country within a distribution utility’s license area. [5]

Cryptocurrency, smart contracts, and cryptography are the key terms in relation to blockchain technology. Blockchain works on digital platforms, which, in the cryptocurrency area is similar to copying coins from one user’s digital wallet to the other user’s digital wallet ensuring that this one coin is only spent once with proper time-tracked informational record. To automate the execution process of the terms and conditions agreed in the ‘smart-contract’ on the blockchain, all the participants can instantly take self-decisions without loss of time through a consensus to validate each record against a transaction. This process is executed with the help of the smart contract itself which is a predefined script containing the terms and conditions which works in such a way that when the script matches the private encryption key, only then the program will execute. They can agree to the next action only when the terms and conditions are met. The cryptography element provides for the security and protection to data at the time of communication of information. The unique encryption feature helps to prevent cyber-attacks from accessing any secure information. Thus, encryption and decryption and the consensus mechanisms to validate the various transactions on each block are the key pillars of the blockchain technology.

Figure 1 below illustrates the basic overview of use of blockchain technology in a local energy market. The prosumers can become sellers as well as buyers based on the amount of excess generation and demand respectively. Prosumers receive a better deal for their excess green energy in the local market-place and get instantly compensated for through a system of tokens and wallet. The consumers, as buyers of electricity, get green power at cheaper rates In the figure, prosumer 1 has more self-generation than its own demand, so it becomes a seller, and prosumer 2 has more demand than self-generation, thus becoming a buyer, at that instant.The lone user who does not have a PV system, remains as a buyer with choice. The buyer purchases energy from the seller and deposits purchased energy costs directly into the seller's wallet in form of an energy coin/token. Each user has a digital wallet which holds the energy coin, with the wallet only being accessible by the user using a private key. All energy transactions between seller and buyer are done by recording data in the memory pool by the transaction server. For each transaction, there is indirect interaction between the memory pool, credit bank, account pool, and the controlling server. To improve the decision time-delay between transactions, various consensus algorithms have been used in the blockchain. In addition, blockchain technology supports distributed ledger storage, distributed computing, smart contracts, consensus mechanisms, can form a consensus non-forgeable ledger, and can be computed retrospectively through the ledger. With the characteristics of decentralization, openness, autonomy, anti-tampering, blockchain realizes the recognition of the whole organization and users and can better adapt to the electric energy data in terms of operation mode, topological form, security protection and meet the requirements for safe and reliable sharing of electrical energy data.

Figure 1: Overview of blockchain technology for decentralized energy market


  1. G. Dileep, "A survey on smart grid technologies and applications", Renew. Energy, vol. 146, pp. 2589-2625, Feb. 2020.

  2. Borlase, Stuart , Sahand Behboodi , Thomas H. Bradley , Miguel Brandao , David Chassin , Johan Enslin , Christopher McCarthy , Stuart Borlase , Thomas Bradley , David P. Chassin , Johan Enslin , Gale Horst , Régis Hourdouillie , Salman Mohagheghi , Casey Quinn , Julio Romero Aguero , Aleksandar Vukojevic , Bartosz Wojszczyk , Eric Woychik , Alex Zheng and Daniel Zimmerle , "Smart Energy Resources: Supply and Demand" , in Smart Grids ed. Stuart Borlase (Boca Raton: CRC Press, 01 Dec 2017 )

  3. M. H. Rehmani, M. Reisslein, A. Rachedi, M. Erol-Kantarci and M. Radenkovic, "Integrating renewable energy resources into the smart grid: Recent developments in information and communication technologies", IEEE Trans. Ind. Informat., vol. 14, no. 7, pp. 2814-2825, Jul. 2018.

  4. K. Mahmud, B. Khan, J. Ravishankar, A. Ahmadi and P. Siano, "An Internet of energy framework with distributed energy resources prosumers and small-scale virtual power plants: An overview", Renew. Sustain. Energy Rev., vol. 127, Jul. 2020.

  5. S. Malik, S. Vyas, A. Datta and A. Ahl, “P2P Trading using DERs: A Holistic View of Global Practices and Pioneering Efforts in India”, In Proc. 2nd International Conference on Large-Scale Integration of Renewable Energy in India, New Delhi, September 2019.


Go to Top