An Electronic Double Auction of Prepaid Electricity Trading Using Blockchain Technology


  • Thammavich Wongsamerchue Technology of Information System Management Division, Faculty of Engineering, Mahidol University, Thailand
  • Adisorn Leelasantitham Technology of Information System Management Division, Faculty of Engineering, Mahidol University, Thailand



Electricity trading, energy trading, electronic double auction, micro grid, IoT, Lora Wan, prepaid, Ethereum blockchain


Thailand’s current energy trading system is an Enhanced Single Buyer (ESB), a market monopoly by a single buyer. It will produce and distribute electricity to service providers in each area, enabling them to distribute services to consumers. In terms of the consumer aspect, it is necessary to purchase electricity from only one seller, and it is not possible to choose the manufacturer independently. Since the price mechanism is not competitive, the market price is mainly determined by a single buyer. Meanwhile, alternative energy power generation technology has progressed. Anyone can become a power producer using wind power or solar energy. People can easily produce electricity to use in their households. Besides, residual energy from use will be sold only to the ESB. However, there is a selling restriction because there is only one buyer. Importantly, Blockchain technology can be applied to enable independent electricity trading. In other words, called peer-to-peer (P2P) trading, the Thai government has policies to promote P2P trading. However, there are not many systems supporting P2P energy trading since P2P trading is still in the beginning stages of the Pilot Project. In this study, the researchers have presented a P2P Power Trading Model using Blockchain technology. This research presents a system with efficiency and simplicity. Also, there are other technology highlights such as IoT, Lora, and Electronic Double Auction. The researcher has designed, implemented, and tested it for actual electrical power trading. It can prove to be traded according to the designed test cases. Importantly, we are truly confident that this research will benefit those interested in developing real-world applications. This research can also be used as an alternative to the traditional power purchase and sale system.


Download data is not yet available.

Author Biographies

Thammavich Wongsamerchue, Technology of Information System Management Division, Faculty of Engineering, Mahidol University, Thailand

Thammavich Wongsamerchue is a Ph.D. student at IT Management Division, Faculty of Engineering, Mahidol University, Thailand. He received the master’s degree in engineering technology from the Thai-Nichi Institute of Technology, Bangkok, Thailand in 2015 and the bachelor’s degree in rehabilitation engineering from The Polytechnic University, Kanagawa, Japan in 2006. He is a specialist in IoT and Blockchain and currently works as an information technology manager at CK Tech Innovation Co., Ltd. in Chiangmai, Thailand. In the research field, he is interested in blockchain, facial recognition, and AI.

Adisorn Leelasantitham, Technology of Information System Management Division, Faculty of Engineering, Mahidol University, Thailand

Adisorn Leelasantitham (Ph.D.) received the B.Eng. degree in Electronics and Telecommunications and the M.Eng. degree in Electrical Engineering from King Mongkut’s University of Technology Thonburi (KMUTT), Thailand, in 1997 and 1999, respectively. He received his Ph.D. degree in Electrical Engineering from Sirindhorn International Institute of Technology (SIIT), Thammasat University, Thailand, in 2005. He is currently the Associate Professor in Technology of Information System Management Division, Faculty of Engineering, Mahidol University, Thailand. His research interests include applications of blockchain technology, conceptual models and frameworks for IT management, disruptive innovation, image processing, AI, neural networks, machine learning, IoT platforms, data analytics, chaos systems, and healthcare IT. He is a member of the IEEE.


López, I., et al., Next generation electric drives for HEV/EV propulsion systems: Technology, trends and challenges. Renewable and Sustainable Energy Reviews, 2019. 114: p. 109336.

Leelasantitham, A., A Business Model Guideline of Electricity Utility Systems Based on Blockchain Technology in Thailand: A Case Study of Consumers, Prosumers and SMEs. Wireless Personal Communications, 2020. 115(4): pp. 3123–3136.

Mengelkamp, E., et al., Designing microgrid energy markets: A case study: The Brooklyn Microgrid. Applied Energy, 2018. 210: pp. 870–880.

Powerledger. Energy, reimagined. Building the operating system for the new energy marketplace. 2020 March 26,2020]; Available from:

Sharma, P.K. and J.H. Park, Blockchain based hybrid network architecture for the smart city. Future Generation Computer Systems, 2018. 86: pp. 650–655.

Mhaisen, N., N. Fetais, and A. Massoud, Secure smart contract-enabled control of battery energy storage systems against cyber-attacks. Alexandria Engineering Journal, 2019.

Mirzaei, M.J. and A. Kazemi, A two-step approach to optimal management of electric vehicle parking lots. Sustainable Energy Technologies and Assessments, 2021. 46: p. 101258.

Long, C., et al., Peer-to-peer energy sharing through a two-stage aggregated battery control in a community Microgrid. Applied Energy, 2018. 226: pp. 261–276.

Foti, M. and M. Vavalis, Blockchain based uniform price double auctions for energy markets. Applied Energy, 2019. 254: p. 113604.

Nguyen, S., et al., Optimizing rooftop photovoltaic distributed generation with battery storage for peer-to-peer energy trading. Applied Energy, 2018. 228: pp. 2567–2580.

Wang, Y., et al., Regional renewable energy development in China: A multidimensional assessment. Renewable and Sustainable Energy Reviews, 2020. 124: p. 109797.

Zhang, C., et al., Peer-to-Peer energy trading in a Microgrid. Applied Energy, 2018. 220: pp. 1–12.

Chaudhary, R., et al., BEST: Blockchain-based secure energy trading in SDN-enabled intelligent transportation system. Computers & Security, 2019. 85: pp. 288–299.

Li, Z., et al., Blockchain for decentralized transactive energy management system in networked microgrids. The Electricity Journal, 2019. 32(4): pp. 58–72.

Sanchez-Sutil, F. and A. Cano-Ortega, Smart regulation and efficiency energy system for street lighting with LoRa LPWAN. Sustainable Cities and Society, 2021. 70: p. 102912.

Almasalma, H., S. Claeys, and G. Deconinck, Peer-to-peer-based integrated grid voltage support function for smart photovoltaic inverters. Applied Energy, 2019. 239: pp. 1037–1048.

Noor, S., et al., Energy Demand Side Management within micro-grid networks enhanced by blockchain. Applied Energy, 2018. 228: pp. 1385–1398.

Dehdashti, E., The Energy Bank-Roadmap for the 21st Century Green power grid. The Electricity Journal, 2019. 32(4): pp. 14–20.

Wang, T., et al., RBT: A distributed reputation system for blockchain-based peer-to-peer energy trading with fairness consideration. Applied Energy, 2021. 295: p. 117056.

Kambule, N., K. Yessoufou, and N. Nwulu, A review and identification of persistent and emerging prepaid electricity meter trends. Energy for Sustainable Development, 2018. 43: pp. 173–185.

Meeuw, A., et al., Implementing a blockchain-based local energy market: Insights on communication and scalability. Computer Communications, 2020. 160: pp. 158–171.

Jiang, Y., et al., Electricity trading pricing among prosumers with game theory-based model in energy blockchain environment. Applied Energy, 2020. 271: p. 115239.

Liu, Y., L. Wu, and J. Li, Peer-to-peer (P2P) electricity trading in distribution systems of the future. The Electricity Journal, 2019. 32(4): pp. 2–6.

Lüth, A., et al., Local electricity market designs for peer-to-peer trading: The role of battery flexibility. Applied Energy, 2018. 229: pp. 1233–1243.

Cardona, M., et al., Prepaid electricity and in-home displays: An alternative for the most vulnerable households in Colombia. The Electricity Journal, 2020. 33(8): p. 106824.

Wang, X., et al., Blockchain-based smart contract for energy demand management. Energy Procedia, 2019. 158: pp. 2719–2724.

Lone, A.H. and R.N. Mir, Forensic-chain: Blockchain based digital forensics chain of custody with PoC in Hyperledger Composer. Digital Investigation, 2019. 28: pp. 44–55.

Andoni, M., et al., Blockchain technology in the energy sector: A systematic review of challenges and opportunities. Renewable and Sustainable Energy Reviews, 2019. 100: pp. 143–174.

Tongnamtiang, S. and A. Leelasantitham. An integration of TAM with usage barriers and ability to understand consumers intention to use SSTs. 2020.

Gregoratti, D. and J. Matamoros, Distributed Energy Trading: The Multiple-Microgrid Case. IEEE Transactions on Industrial Electronics, 2015. 62(4): pp. 2551–2559.

Islam, R., et al., LoRa and server-based home automation using the internet of things (IoT). Journal of King Saud University – Computer and Information Sciences, 2021.

Kashyap, M., V. Sharma, and N. Gupta, Taking MQTT and NodeMcu to IOT: Communication in Internet of Things. Procedia Computer Science, 2018. 132: pp. 1611–1618.

Hasankhani, A., et al., Blockchain technology in the future smart grids: A comprehensive review and frameworks. International Journal of Electrical Power & Energy Systems, 2021. 129: p. 106811.

Amin, W., et al., A motivational game-theoretic approach for peer-to-peer energy trading in islanded and grid-connected microgrid. International Journal of Electrical Power & Energy Systems, 2020. 123: p. 106307.

Miles, B., et al., A study of LoRaWAN protocol performance for IoT applications in smart agriculture. Computer Communications, 2020. 164: pp. 148–157.

Brewer, P. and A. Ratan, Profitability, efficiency, and inequality in double auction markets with snipers. Journal of Economic Behavior & Organization, 2019. 164: pp. 486–499.

Muzammal, M., Q. Qu, and B. Nasrulin, Renovating blockchain with distributed databases: An open source system. Future Generation Computer Systems, 2019. 90: pp. 105–117.

Tushar, W., et al., A motivational game-theoretic approach for peer-to-peer energy trading in the smart grid. Applied Energy, 2019. 243: pp. 10–20.

Yi, H., et al., Energy trading IoT system based on blockchain. Swarm and Evolutionary Computation, 2021. 64: p. 100891.

Chen, K., J. Lin, and Y. Song, Trading strategy optimization for a prosumer in continuous double auction-based peer-to-peer market: A prediction-integration model. Applied Energy, 2019. 242: pp. 1121–1133.

Patel, C. and N. Doshi, “A Novel MQTT Security framework In Generic IoT Model”. Procedia Computer Science, 2020. 171: pp. 1399–1408.

Fong-In, S., et al., A partial encryption scheme using absolute-value chaotic map for secure electronic health records. The 4th Joint International Conference on Information and Communication Technology, Electronic and Electrical Engineering (JICTEE), 2014: pp. 1–5.






Multimedia Data and Applications on the Next Generation Communication

Most read articles by the same author(s)