Blockchain based energy transactions for a prosumer community


Nikita Rajendra Karandikar


blockchain, Hyperledger Fabric


Integration of solar micro-generation capabilities in domestic contexts is on the rise, leading to the creation of prosumer communities who generate part of the energy they consume. Prosumer communities require a decentralized, transparent and immutable transaction system in order to extract value from their surplus energy generation and usage flexibility. The aim of this study is to develop frameworks and methods to create such a prosumer transaction system with self enforcing smart contracts to facilitate trading of energy assets such as electricity units, energy flexibility incentives and storage credits.

Blockchain is a transparent, distributed ledger for consensus based transaction processing maintained by a network of peer nodes. Hyperledger Fabric is a blockchain platform that offers the added benefits of lower operating cost, faster transaction processing, user authentication based access control and support for self enforcing smart contracts.

This thesis investigates the applicability of Hyperledger Fabric to tokenize and transact energy assets in a unified transaction system. Data driven approaches to implement an incentive based energy flexibility system for peak mitigation on the blockchain are also investigated.

To this end, the stakeholders for such a transaction management system were identified and their business relationships and interactions were described. Energy assets were encapsulated into blockchain tokens and algorithms were developed and encoded into self enforcing smart contracts based on the stakeholder relationships. A unified transaction framework was proposed that would bring on board all the stakeholders, their trading relationships and the assets being transacted. Tokens and methods in the transaction system were implemented in fungible and non fungible versions and the versions were critically compared in terms of application area, design, algorithmic complexity, performance, advantages and disadvantages. Further, with a focus on energy flexibility applications, a prosumer research dataset was analysed to gain insights into the production and consumption behaviors. Based on these insights, a data driven approach for peak mitigation was proposed and implemented on the Hyperledger Fabric blockchain.

The thesis thus addresses different aspects of a blockchain based prosumer transaction system, and shows the feasibility of proposed approaches through implementation and performance testing of proofs of concept.

Author Biography

Nikita Rajendra Karandikar

University of Stavanger
Faculty of Science and Technology
Department of Electrical Engineering and Computer Science


Xiaolei Yang, Lingyun He, Yufei Xia, and Yufeng Chen. "Effect of government subsidies on renewable energy investments: The threshold effect." In: Energy Policy 132 (2019), pp. 156-166.

Weihua Su, Mengling Liu, Shouzhen Zeng, Dalia Sˇtreimikiene˙, Tomas Baleˇzentis, and Ilona Aliˇsauskaite˙-Sˇeˇskiene˙. "Valuating renewable microgeneration technologies in Lithuanian house- holds: A study on willingness to pay." In: Journal of Cleaner Production 191 (2018), pp. 318-329.

Axel Gautier, Julien Jacqmin, and Jean-Christophe Poudou. "The prosumers and the grid." In: Journal of Regulatory Eco- nomics 53.1 (2018), pp. 100-126.

Allison Lantero. "How microgrids work." In: US Department of Energy 17 (2014).

Chenghua Zhang, Jianzhong Wu, Chao Long, and Meng Cheng. "Review of existing peer-to-peer energy trading projects." In: Energy Procedia 105 (2017), pp. 2563-2568.

Yifei Wei, Yu Gong, Qiao Li, Mei Song, and Xiaojun Wang. "Energy Efficient Resource Allocation Approach for Renew- able Energy Powered Heterogeneous Cellular Networks." In: CMC-COMPUTERS MATERIALS & CONTINUA 64.1 (2020), pp. 501-514.

Chenghua Zhang, Jianzhong Wu, Yue Zhou, Meng Cheng, and Chao Long. "Peer-to-Peer energy trading in a Microgrid." In: Applied Energy 220 (2018), pp. 1-12.

Forbes. The Rising Popularity of Energy Storage as a Service. popularity-of-energy-storage-as-a-service/?sh=223abe19a3a7. Accessed: 2021-04-23. 2021.

Jura Arkhangelski, Pierluigi Siano, Abdou-Tankari Mahamadou, and Gilles Lefebvre. "Evaluating the economic benefits of a smart-community microgrid with centralized electrical storage and photovoltaic systems." In: Energies 13.7 (2020), p. 1764.

Khizir Mahmud, M Jahangir Hossain, and Graham E Town. "Peak-load reduction by coordinated response of photovoltaics, battery storage, and electric vehicles." In: IEEE Access 6 (2018), pp. 29353-29365.

Moslem Uddin, Mohd Fakhizan Romlie, Mohd Faris Abdullah, Syahirah Abd Halim, Tan Chia Kwang, et al. "A review on peak load shaving strategies." In: Renewable and Sustainable Energy Reviews 82 (2018), pp. 3323-3332.

Wujing Huang, Ning Zhang, Chongqing Kang, Mingxuan Li, and Molin Huo. "From demand response to integrated demand response: Review and prospect of research and application." In: Protection and Control of Modern Power Systems 4.1 (2019), pp. 1-13.

Kaveh Paridari, Alessandra Parisio, Henrik Sandberg, and Karl Henrik Johansson. "Demand response for aggregated residen- tial consumers with energy storage sharing." In: 2015 54th IEEE conference on decision and control (CDC). IEEE. 2015, pp. 2024-2030.

Tarek AlSkaif, Ioannis Lampropoulos, Machteld Van Den Broek, and Wilfried Van Sark. "Gamification-based framework for engagement of residential customers in energy applications." In: Energy Research & Social Science 44 (2018), pp. 187-195.

Satoshi Nakamoto et al. "Bitcoin: A peer-to-peer electronic cash system." In: (2008).

David Vangulick, Bertrand Corn'elusse, and Damien Ernst. "Blockchain for peer-to-peer energy exchanges: design and recom- mendations." In: 2018 Power Systems Computation Conference (PSCC). IEEE. 2018, pp. 1-7.

Naiyu Wang, Xiao Zhou, Xin Lu, Zhitao Guan, Longfei Wu, Xiaojiang Du, and Mohsen Guizani. "When energy trading meets blockchain in electrical power system: The state of the art." In: Applied Sciences 9.8 (2019), p. 1561.

Subhasis Thakur and John G Breslin."Peer to peer energy trade among microgrids using blockchain based distributed coalition formation method." In: Technology and Economics of Smart Grids and Sustainable Energy 3.1 (2018), pp. 1-17.

Ayman Esmat, Martijn de Vos, Yashar Ghiassi-Farrokhfal, Peter Palensky, and Dick Epema. "A novel decentralized platform for peer-to-peer energy trading market with blockchain technology." In: Applied Energy 282 (2021), p. 116123.

Vitalik Buterin et al. "A next-generation smart contract and decentralized application platform." In: white paper (2014).

Elli Androulaki, Artem Barger, Vita Bortnikov, Christian Cachin, Konstantinos Christidis, Angelo De Caro, David Enyeart, Christo- pher Ferris, Gennady Laventman, Yacov Manevich, et al. "Hy- perledger fabric: a distributed operating system for permis- sioned blockchains." In: Proceedings of the thirteenth EuroSys conference. 2018, pp. 1-15.

Christian Bu¨hrer, Ivo Hubli, and Eliane Marti. "The regulatory burden in the Swiss wealth management industry." In: Financial Markets and Portfolio Management 19.1 (2005), pp. 99-108.

Golang. The Go programming language. Accessed: 2021-02-17. 2021.

Ahmet O¨ nder Gu¨r, S¸afak O¨ ksu¨zer, and Enis Karaarslan."Blockchain based metering and billing system proposal with privacy pro- tection for the electric network." In: 2019 7th International Istanbul Smart Grids and Cities Congress and Fair (ICSG). Ieee. 2019, pp. 204-208.

Zheng Che, Yu Wang, Juanjuan Zhao, Yan Qiang, Yue Ma, and Jihua Liu. "A distributed energy trading authentication mechanism based on a consortium blockchain." In: Energies 12.15 (2019), p. 2878.

Nikita Karandikar, Antorweep Chakravorty, and Chunming Rong. "Transactive Energy on Hyperledger Fabric." In: 2019 Sixth International Conference on Internet of Things: Systems, Management and Security (IOTSMS). IEEE. 2019, pp. 539-546.

Nikita Karandikar, Antorweep Chakravorty, and Chunming Rong. "RenewLedger: Renewable energy management powered by Hyperledger Fabric." In: 2020 IEEE Symposium on Com- puters and Communications (ISCC). IEEE. 2020, pp. 1-6.

Statnett. Elcertificates and guarantees of origin. https://www. operation/the-power-market/elcertificates-and-guarantees-of-origin/. Accessed: 2021-04-23. 2021.

Yeray Mezquita, Amin Shokri Gazafroudi, JM Corchado, Mi- adreza Shafie-Khah, Hannu Laaksonen, and Aida Kamiˇsali'c. "Multi-agent architecture for peer-to-peer electricity trading based on blockchain technology." In: 2019 XXVII International Conference on Information, Communication and Automation Technologies (ICAT). IEEE. 2019, pp. 1-6.

Claudia Pop, Marcel Antal, Tudor Cioara, and Ionut Anghel. "TRADING ENERGY AS A DIGITAL ASSET: A BLOCKCHAIN- BASED ENERGY MARKET."In: Cryptocurrencies and Blockchain Technology Applications (2020), pp. 261-279.

Ausgrid. Community Batteries. your-community/Community-Batteries. Accessed: 2021-02-17. 2021.

Parth Thakkar, Senthil Nathan, and Balaji Viswanathan. "Per- formance benchmarking and optimizing hyperledger fabric blockchain platform." In: 2018 IEEE 26th International Sympo- sium on Modeling, Analysis, and Simulation of Computer and Telecommunication Systems (MASCOTS). IEEE. 2018, pp. 264- 276.

Diego Ongaro and John Ousterhout."In search of an understand- able consensus algorithm." In: 2014 USENIX Annual Technical Conference (USENIXATC 14) (2014), pp. 305-319.

Hyperledger Fabric. The Ordering Service. https://hyperledger- Accessed: 2021-04- 23. 2021.

Saurabh Singh, Young-Sik Jeong, and Jong Hyuk Park. "A sur- vey on cloud computing security: Issues, threats, and solutions." In: Journal of Network and Computer Applications 75 (2016), pp. 200-222.

Hyperledger Performance and Scale Working Group. Hyper- ledger Blockchain Performance Metrics White Paper. https:// Accessed: 2021-04-23. 2021.

Arati Baliga, Nitesh Solanki, Shubham Verekar, Amol Pednekar, Pandurang Kamat, and Siddhartha Chatterjee. "Performance characterization of hyperledger fabric." In: 2018 Crypto Valley conference on blockchain technology (CVCBT). IEEE. 2018, pp. 65-74.

Fridtjof Nystrøm. "Network Performance in Hyperledger Fabric- Investigating the network resource consumption of transactions in a Distributed Ledger Technology system." MA thesis. 2019.

Parth Thakkar and Senthil Nathan."Scaling Hyperledger Fabric Using Pipelined Execution and Sparse Peers." In: arXiv preprint arXiv:2003.05113 (2020).

Tianmu Li, Yongjun Ren, and Jinyue Xia. "Blockchain Queuing Model with Non-Preemptive Limited-Priority." In: INTELLI- GENT AUTOMATION AND SOFT COMPUTING 26.5 (2020), pp. 1111-1122.

Sherali Zeadally and Jacques Bou Abdo. "Blockchain: Trends and future opportunities." In: Internet Technology Letters 2.6 (2019), e130.

Alex Tapscott and Don Tapscott. "How blockchain is changing finance." In: Harvard Business Review 1.9 (2017), pp. 2-5.

Krishnasuri Narayanam, Seep Goel, Abhishek Singh, Yeden- dra Shrinivasan, Shreya Chakraborty, Parameswaran Selvam, Vishnu Choudhary, and Mudit Verma. "Blockchain Based e- Invoicing Platform for Global Trade." In: 2020 IEEE Inter- national Conference on Blockchain (Blockchain). IEEE. 2020, pp. 385-392.

Anton Hasselgren, Katina Kralevska, Danilo Gligoroski, Sindre A Pedersen, and Arild Faxvaag. "Blockchain in healthcare and health sciences-A scoping review." In: International Journal of Medical Informatics 134 (2020), p. 104040.

Shan Jiang, Jiannong Cao, Hanqing Wu, Yanni Yang, Mingyu Ma, and Jianfei He. "Blochie: a blockchain-based platform for healthcare information exchange." In: 2018 ieee interna- tional conference on smart computing (smartcomp). IEEE. 2018, pp. 49-56.

Yan Zhuang, Lincoln R Sheets, Yin-Wu Chen, Zon-Yin Shae, Jeffrey JP Tsai, and Chi-Ren Shyu. "A patient-centric health information exchange framework using blockchain technology." In: IEEE journal of biomedical and health informatics 24.8 (2020), pp. 2169-2176.

Laura Ricci, Damiano Di Francesco Maesa, Alfredo Favenza, and Enrico Ferro. "Blockchains for covid-19 contact tracing and vaccine support: a systematic review." In: IEEE Access 9 (2021), pp. 37936-37950.

Claudia Daniela Antal, Tudor Cioara, Marcel Antal, and Ionut Anghel. "Blockchain platform for COVID-19 vaccine supply management." In: arXiv preprint arXiv:2101.00983 (2021).

Jin Wang, Wencheng Chen, Lei Wang, Yongjun Ren, and R Simon Sherratt. "Blockchain-based data storage mechanism for industrial internet of things." In: Intelligent Automation and Soft Computing 26.5 (2020), pp. 1157-1172.

Hanqing Wu, Jiannong Cao, Yanni Yang, Cheung Leong Tung, Shan Jiang, Bin Tang, Yang Liu, Xiaoqing Wang, and Yuming Deng. "Data management in supply chain using blockchain: Challenges and a case study." In: 2019 28th International Con- ference on Computer Communication and Networks (ICCCN). IEEE. 2019, pp. 1-8.

Hao Chen, Wunan Wan, Jinyue Xia, Shibin Zhang, Jinquan Zhang, Xizi Peng, and Xingjie Fan. "Task-Attribute-Based Access Control Scheme for IoT via Blockchain." In: CMC- COMPUTERS MATERIALS & CONTINUA 65.3 (2020), pp. 2441- 2453.

Shan Jiang, Jiannong Cao, Hanqing Wu, and Yanni Yang. "Fairness-based Packing of Industrial IoT Data in Permissioned Blockchains." In: IEEE Transactions on Industrial Informatics (2020).

Borja Bordel, Ramon Alcarria, Diego Martin, and Alvaro Sanchez- Picot. "Trust provision in the internet of things using transver- sal blockchain networks." In: INTELLIGENT AUTOMATION AND SOFT COMPUTING 25.1 (2019), pp. 155-170.

Yao Dai. "Edge computing-based tasks offloading and block caching for mobile blockchain." In: Computers, Materials & Continua 62.2 (2020), pp. 905-915.

Merlinda Andoni, Valentin Robu, David Flynn, Simone Abram, Dale Geach, David Jenkins, Peter McCallum, and Andrew Pea- cock. "Blockchain technology in the energy sector: A systematic review of challenges and opportunities." In: Renewable and Sustainable Energy Reviews 100 (2019), pp. 143-174.

Zhetao Li, Jiawen Kang, Rong Yu, Dongdong Ye, Qingyong Deng, and Yan Zhang."Consortium blockchain for secure energy trading in industrial internet of things." In: IEEE transactions on industrial informatics 14.8 (2017), pp. 3690-3700.

Keke Gai, Yulu Wu, Liehuang Zhu, Meikang Qiu, and Meng Shen. "Privacy-preserving energy trading using consortium blockchain in smart grid." In: IEEE Transactions on Indus- trial Informatics 15.6 (2019), pp. 3548-3558.

Nurzhan Zhumabekuly Aitzhan and Davor Svetinovic. "Security and privacy in decentralized energy trading through multi- signatures, blockchain and anonymous messaging streams." In: IEEE Transactions on Dependable and Secure Computing 15.5 (2016), pp. 840-852.

Amrit Paudel, Kalpesh Chaudhari, Chao Long, and Hoay Beng Gooi. "Peer-to-peer energy trading in a prosumer-based commu- nity microgrid: A game-theoretic model." In: IEEE Transactions on Industrial Electronics 66.8 (2018), pp. 6087-6097.

Claudia Pop, Tudor Cioara, Marcel Antal, Ionut Anghel, Ioan Salomie, and Massimo Bertoncini. "Blockchain based decen- tralized management of demand response programs in smart energy grids." In: Sensors 18.1 (2018), p. 162.

Anish Jindal, Gagangeet Singh Aujla, Neeraj Kumar, and Mas- simo Villari. "GUARDIAN: Blockchain-based secure demand response management in smart grid system." In: IEEE Trans- actions on Services Computing 13.4 (2019), pp. 613-624.

Sana Noor, Wentao Yang, Miao Guo, Koen H van Dam, and Xiaonan Wang. "Energy Demand Side Management within micro-grid networks enhanced by blockchain." In: Applied energy 228 (2018), pp. 1385-1398.

M. L. Di Silvestre, P. Gallo, E. R. Sanseverino, G. Scium'e, and G. Zizzo. "Aggregation and Remuneration in Demand Response With a Blockchain-Based Framework." In: IEEE Transactions on Industry Applications 56.4 (2020), pp. 4248- 4257. doi: 10.1109/TIA.2020.2992958.

Dan Chirtoaca, Joshua Ellul, and George Azzopardi. "A frame- work for creating deployable smart contracts for non-fungible to- kens on the Ethereum blockchain." In: 2020 IEEE International Conference on Decentralized Applications and Infrastructures (DAPPS). IEEE. 2020, pp. 100-105.

Michael Borkowski, Marten Sigwart, Philipp Frauenthaler, Taneli Hukkinen, and Stefan Schulte. "DeXTT: deterministic cross- blockchain token transfers."In: IEEE Access 7 (2019), pp. 111030- 111042.

Julian Barreiro-Gomez and Hamidou Tembine. "Blockchain token economics: A mean-field-type game perspective."In: IEEE Access 7 (2019), pp. 64603-64613.

Mustafa Bal and Caitlin Ner. "NFTracer: a Non-Fungible token tracking proof-of-concept using Hyperledger Fabric." In: arXiv preprint arXiv:1905.04795 (2019).

Mel T Devine, Marianna Russo, and Paul Cuffe. "Blockchain electricity trading using tokenised power delivery contracts. ESRI Working Paper No. 649 December 2019." In: (2019).

Ferdinand Regner, Nils Urbach, and Andr'e Schweizer. "NFTs in Practice-Non-Fungible Tokens as Core Component of a Blockchain-based Event Ticketing Application." In: (2019).

Tudor Cioara, Claudia Pop, Razvan Zanc, Ionut Anghel, Mar- cel Antal, and Ioan Salomie. "Smart Grid Management us- ing Blockchain: Future Scenarios and Challenges." In: arXiv preprint arXiv:2012.06256 (2020).

Cover image



September 15, 2021


Creative Commons License

This work is licensed under a Creative Commons Attribution 4.0 International License.