IDEAS home Printed from https://ideas.repec.org/a/gam/jeners/v18y2025i8p2040-d1635881.html
   My bibliography  Save this article

Distributed Power Trading Mechanism Based on Blockchain Smart Contracts

Author

Listed:
  • Lihua Zhang

    (School of Information and Software Engineering, East China Jiaotong University, Nanchang 330000, China)

  • Rui Huang

    (School of Electrical and Automation Engineering, East China Jiaotong University, Nanchang 330000, China)

  • Menglian Jiao

    (School of Electrical and Automation Engineering, East China Jiaotong University, Nanchang 330000, China)

  • Qingyu Lu

    (School of Information and Software Engineering, East China Jiaotong University, Nanchang 330000, China)

  • Yi Yang

    (School of Information and Software Engineering, East China Jiaotong University, Nanchang 330000, China)

Abstract

To address the challenges of inefficiency, vulnerability to attacks, and the lack of transparency and fairness in distributed power trading, a distributed power trading mechanism based on blockchain smart contracts is proposed. Firstly, a strategy for matching distributed power trading orders is designed, and a model for managing user credit is constructed using the entropy weight method and deviation cost. Secondly, a smart contract for distributed power trading is compiled using the Solidity language. Finally, the designed smart contract is deployed, tested, and a distributed power trading network is simulated. The security analysis indicates that the Merkle Tree structure and PoW consensus mechanism effectively ensure the data and system security of distributed power transactions. Simulation test results demonstrate that the transaction mechanism can reliably complete transaction settlements, safeguard the interests of trustworthy users, and enhance the economic benefits of both parties involved in the transaction.

Suggested Citation

  • Lihua Zhang & Rui Huang & Menglian Jiao & Qingyu Lu & Yi Yang, 2025. "Distributed Power Trading Mechanism Based on Blockchain Smart Contracts," Energies, MDPI, vol. 18(8), pages 1-27, April.
  • Handle: RePEc:gam:jeners:v:18:y:2025:i:8:p:2040-:d:1635881
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/1996-1073/18/8/2040/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/1996-1073/18/8/2040/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Han, Dong & Zhang, Chengzhenghao & Ping, Jian & Yan, Zheng, 2020. "Smart contract architecture for decentralized energy trading and management based on blockchains," Energy, Elsevier, vol. 199(C).
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Tsao, Yu-Chung & Thanh, Vo-Van, 2021. "Toward sustainable microgrids with blockchain technology-based peer-to-peer energy trading mechanism: A fuzzy meta-heuristic approach," Renewable and Sustainable Energy Reviews, Elsevier, vol. 136(C).
    2. Zheyuan Sun & Sara Tavakoli & Kaveh Khalilpour & Alexey Voinov & Jonathan Paul Marshall, 2024. "Barriers to Peer-to-Peer Energy Trading Networks: A Multi-Dimensional PESTLE Analysis," Sustainability, MDPI, vol. 16(4), pages 1-23, February.
    3. Narendra Gariya & Anjas Asrani & Adhirath Mandal & Amir Shaikh & Dowan Cha, 2025. "A Comprehensive Analysis of Integrating Blockchain Technology into the Energy Supply Chain for the Enhancement of Transparency and Sustainability," Energies, MDPI, vol. 18(11), pages 1-24, June.
    4. Esmat, Ayman & de Vos, Martijn & Ghiassi-Farrokhfal, Yashar & Palensky, Peter & Epema, Dick, 2021. "A novel decentralized platform for peer-to-peer energy trading market with blockchain technology," Applied Energy, Elsevier, vol. 282(PA).
    5. Adisorn Leelasantitham & Thammavich Wongsamerchue & Yod Sukamongkol, 2024. "Economic Pricing in Peer-to-Peer Electrical Trading for a Sustainable Electricity Supply Chain Industry in Thailand," Energies, MDPI, vol. 17(5), pages 1-19, March.
    6. Lopez, Hector K. & Zilouchian, Ali, 2023. "Peer-to-peer energy trading for photo-voltaic prosumers," Energy, Elsevier, vol. 263(PA).
    7. Uyikumhe Damisa & Nnamdi I. Nwulu & Pierluigi Siano, 2022. "Towards Blockchain-Based Energy Trading: A Smart Contract Implementation of Energy Double Auction and Spinning Reserve Trading," Energies, MDPI, vol. 15(11), pages 1-16, June.
    8. Mohammad Awad AlAfnan & Siti Fatimah MohdZuki, 2024. "Malaysia's National Blockchain Roadmap: A Critical Discourse Analysis of Focus, Goals, and Challenges," World Journal of English Language, Sciedu Press, vol. 14(5), pages 482-482, September.
    9. Wang, Longze & Jiao, Shucen & Xie, Yu & Xia, Shiwei & Zhang, Delong & Zhang, Yan & Li, Meicheng, 2022. "Two-way dynamic pricing mechanism of hydrogen filling stations in electric-hydrogen coupling system enhanced by blockchain," Energy, Elsevier, vol. 239(PC).
    10. Mohammed Shuaib & Sumit Badotra & Muhammad Irfan Khalid & Abeer D. Algarni & Syed Sajid Ullah & Sami Bourouis & Jawaid Iqbal & Salil Bharany & Lokesh Gundaboina, 2022. "A Novel Optimization for GPU Mining Using Overclocking and Undervolting," Sustainability, MDPI, vol. 14(14), pages 1-15, July.
    11. Arnob Das & Susmita Datta Peu & Md. Abdul Mannan Akanda & Abu Reza Md. Towfiqul Islam, 2023. "RETRACTED: Peer-to-Peer Energy Trading Pricing Mechanisms: Towards a Comprehensive Analysis of Energy and Network Service Pricing (NSP) Mechanisms to Get Sustainable Enviro-Economical Energy Sector," Energies, MDPI, vol. 16(5), pages 1-27, February.
    12. Hashemipour, Naser & Crespo del Granado, Pedro & Aghaei, Jamshid, 2021. "Dynamic allocation of peer-to-peer clusters in virtual local electricity markets: A marketplace for EV flexibility," Energy, Elsevier, vol. 236(C).
    13. Huang, Chung-Ting & Scott, Ian J., 2024. "Peer-to-peer multi-period energy market with flexible scheduling on a scalable and cost-effective blockchain," Applied Energy, Elsevier, vol. 367(C).
    14. Dong, Jingya & Song, Chunhe & Liu, Shuo & Yin, Huanhuan & Zheng, Hao & Li, Yuanjian, 2022. "Decentralized peer-to-peer energy trading strategy in energy blockchain environment: A game-theoretic approach," Applied Energy, Elsevier, vol. 325(C).
    15. Qian, Tong & Tang, Wenhu & Wu, Qinghua, 2020. "A fully decentralized dual consensus method for carbon trading power dispatch with wind power," Energy, Elsevier, vol. 203(C).
    16. Paiho, Satu & Kiljander, Jussi & Sarala, Roope & Siikavirta, Hanne & Kilkki, Olli & Bajpai, Arpit & Duchon, Markus & Pahl, Marc-Oliver & Wüstrich, Lars & Lübben, Christian & Kirdan, Erkin & Schindler,, 2021. "Towards cross-commodity energy-sharing communities – A review of the market, regulatory, and technical situation," Renewable and Sustainable Energy Reviews, Elsevier, vol. 151(C).
    17. Manfren, Massimiliano & Nastasi, Benedetto & Tronchin, Lamberto & Groppi, Daniele & Garcia, Davide Astiaso, 2021. "Techno-economic analysis and energy modelling as a key enablers for smart energy services and technologies in buildings," Renewable and Sustainable Energy Reviews, Elsevier, vol. 150(C).
    18. Liu, Zhengguang & Guo, Zhiling & Chen, Qi & Song, Chenchen & Shang, Wenlong & Yuan, Meng & Zhang, Haoran, 2023. "A review of data-driven smart building-integrated photovoltaic systems: Challenges and objectives," Energy, Elsevier, vol. 263(PE).
    19. Tehseen Mazhar & Hafiz Muhammad Irfan & Sunawar Khan & Inayatul Haq & Inam Ullah & Muhammad Iqbal & Habib Hamam, 2023. "Analysis of Cyber Security Attacks and Its Solutions for the Smart grid Using Machine Learning and Blockchain Methods," Future Internet, MDPI, vol. 15(2), pages 1-37, February.
    20. Danalakshmi D. & Gopi R. & A. Hariharasudan & Iwona Otola & Yuriy Bilan, 2020. "Reactive Power Optimization and Price Management in Microgrid Enabled with Blockchain," Energies, MDPI, vol. 13(23), pages 1-20, November.

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jeners:v:18:y:2025:i:8:p:2040-:d:1635881. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.