IDEAS home Printed from https://ideas.repec.org/a/gam/jmathe/v13y2025i3p395-d1576827.html
   My bibliography  Save this article

Decentralized Energy Swapping for Sustainable Wireless Sensor Networks Using Blockchain Technology

Author

Listed:
  • Umar Draz

    (Department of Computer Science, University of Sahiwal, Sahiwal 57000, Pakistan)

  • Tariq Ali

    (Artificial Intelligence and Sensing Technologies (AIST) Research Center, University of Tabuk, Tabuk 71491, Saudi Arabia)

  • Sana Yasin

    (Department of Computer Science, University of Okara, Okara 56300, Pakistan)

  • Mohammad Hijji

    (Faculty of Computers and Information Technology, University of Tabuk, Tabuk 71491, Saudi Arabia)

  • Muhammad Ayaz

    (Artificial Intelligence and Sensing Technologies (AIST) Research Center, University of Tabuk, Tabuk 71491, Saudi Arabia)

  • EL-Hadi M. Aggoune

    (Artificial Intelligence and Sensing Technologies (AIST) Research Center, University of Tabuk, Tabuk 71491, Saudi Arabia)

Abstract

Wireless sensor networks deployed in energy-constrained environments face critical challenges relating to sustainability and protection. This paper introduces an innovative blockchain-powered safe energy-swapping protocol that enables sensor nodes to voluntarily and securely trade excess energy, optimizing usage and prolonging lifespan. Unlike traditional centralized management schemes, the proposed approach leverages blockchain technology to generate an open, immutable ledger for transactions, guaranteeing integrity, visibility, and resistance to manipulation. Employing smart contracts and a lightweight Proof-of-Stake consensus mechanism, computational and power costs are minimized, making it suitable for WSNs with limited assets. The system is built using NS-3 to simulate node behavior, energy usage, and network dynamics, while Python manages the blockchain architecture, cryptographic security, and trading algorithms. Sensor nodes checked their power levels and broadcast requests when energy fell under a predefined threshold. Neighboring nodes with surplus power responded with offers, and intelligent contracts facilitated secure exchanges recorded on the blockchain. The Proof-of-Stake-based consensus process ensured efficient and secure validation of transactions without the energy-intensive need for Proof-of-Work schemes. The simulation results indicated that the proposed approach reduces wastage and significantly boosts network resilience by allowing nodes to remain operational longer. A 20% increase in lifespan is observed compared to traditional methods while maintaining low communication overhead and ensuring secure, tamper-proof trading of energy. This solution provides a scalable, safe, and energy-efficient answer for next-generation WSNs, especially in applications like smart cities, precision agriculture, and environmental monitoring, where autonomy of energy is paramount.

Suggested Citation

  • Umar Draz & Tariq Ali & Sana Yasin & Mohammad Hijji & Muhammad Ayaz & EL-Hadi M. Aggoune, 2025. "Decentralized Energy Swapping for Sustainable Wireless Sensor Networks Using Blockchain Technology," Mathematics, MDPI, vol. 13(3), pages 1-32, January.
  • Handle: RePEc:gam:jmathe:v:13:y:2025:i:3:p:395-:d:1576827
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7390/13/3/395/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7390/13/3/395/
    Download Restriction: no
    ---><---

    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:jmathe:v:13:y:2025:i:3:p:395-:d:1576827. 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.

    We have no bibliographic references for this item. You can help adding them by using 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.