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. Zhou, Yuekuan & Lund, Peter D., 2023. "Peer-to-peer energy sharing and trading of renewable energy in smart communities ─ trading pricing models, decision-making and agent-based collaboration," Renewable Energy, Elsevier, vol. 207(C), pages 177-193.
    2. Byeongtae Ahn, 2022. "Implementation and Early Adoption of an Ethereum-Based Electronic Voting System for the Prevention of Fraudulent Voting," Sustainability, MDPI, vol. 14(5), pages 1-16, March.
    3. 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).
    4. Mehdinejad, Mehdi & Shayanfar, Heidarali & Mohammadi-Ivatloo, Behnam, 2022. "Decentralized blockchain-based peer-to-peer energy-backed token trading for active prosumers," Energy, Elsevier, vol. 244(PA).
    5. Yaçine Merrad & Mohamed Hadi Habaebi & Siti Fauziah Toha & Md. Rafiqul Islam & Teddy Surya Gunawan & Mokhtaria Mesri, 2022. "Fully Decentralized, Cost-Effective Energy Demand Response Management System with a Smart Contracts-Based Optimal Power Flow Solution for Smart Grids," Energies, MDPI, vol. 15(12), pages 1-27, June.
    6. 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.
    7. 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).
    8. Uyikumhe Damisa & Peter Olabisi Oluseyi & Nnamdi Ikechi Nwulu, 2022. "Blockchain-Based Gas Auctioning Coupled with a Novel Economic Dispatch Formulation for Gas-Deficient Thermal Plants," Energies, MDPI, vol. 15(14), pages 1-13, July.
    9. 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.
    10. Lopez, Hector K. & Zilouchian, Ali, 2023. "Peer-to-peer energy trading for photo-voltaic prosumers," Energy, Elsevier, vol. 263(PA).
    11. Xu, Shuang & Zhao, Yong & Li, Yuanzheng & Zhou, Yue, 2021. "An iterative uniform-price auction mechanism for peer-to-peer energy trading in a community microgrid," Applied Energy, Elsevier, vol. 298(C).
    12. 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.
    13. Zhang, Bidan & Du, Yang & Chen, Xiaoyang & Lim, Eng Gee & Jiang, Lin & Yan, Ke, 2022. "A novel adaptive penalty mechanism for Peer-to-Peer energy trading," Applied Energy, Elsevier, vol. 327(C).
    14. Wang, Beibei & Xu, Lun & Wang, Jialei, 2023. "A privacy-preserving trading strategy for blockchain-based P2P electricity transactions," Applied Energy, Elsevier, vol. 335(C).
    15. 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.
    16. Salla Annala & Lurian Klein & Luisa Matos & Sirpa Repo & Olli Kilkki & Arun Narayanan & Samuli Honkapuro, 2021. "Framework to Facilitate Electricity and Flexibility Trading within, to, and from Local Markets," Energies, MDPI, vol. 14(11), pages 1-20, May.
    17. Nykyri, Mikko & Kärkkäinen, Tommi J. & Levikari, Saku & Honkapuro, Samuli & Annala, Salla & Silventoinen, Pertti, 2022. "Blockchain-based balance settlement ledger for energy communities in open electricity markets," Energy, Elsevier, vol. 253(C).
    18. Lei, Yu-Tian & Ma, Chao-Qun & Mirza, Nawazish & Ren, Yi-Shuai & Narayan, Seema Wati & Chen, Xun-Qi, 2022. "A renewable energy microgrids trading management platform based on permissioned blockchain," Energy Economics, Elsevier, vol. 115(C).
    19. Li, Zhenpeng & Ma, Tao, 2020. "Peer-to-peer electricity trading in grid-connected residential communities with household distributed photovoltaic," Applied Energy, Elsevier, vol. 278(C).
    20. Kimia Honari & Sara Rouhani & Nida E. Falak & Yuan Liu & Yunwei Li & Hao Liang & Scott Dick & James Miller, 2023. "Smart Contract Design in Distributed Energy Systems: A Systematic Review," Energies, MDPI, vol. 16(12), pages 1-28, June.

    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.