Energy is a crucial need in today's world for powering homes, businesses, transportation, and industrial processes. Fossil fuels, such as oil, coal, and natural gas, have been the primary sources of energy for decades. However, there is growing recognition of the negative environmental impact of fossil fuels and the need to transition to cleaner and more sustainable sources of energy. Distributed Energy Resources , such as wind and solar offer several benefits including, reducing energy costs, increasing resiliency, and decreasing carbon emissions. However, the integration of () into the grid requires advanced communication and secure control strategies to ensure a stable and reliable grid operations. In this regard, a blockchain‐based industrial wireless sensor network can provide secure and resilience data transmission to facilitate intelligent integration, monitoring, and control of in the smart grid. In this research, a smart contracts framework in Solana called Advanced Solana Blockchain () is proposed for in the smart grid. The proposed scheme enables resilient and secure real‐time control and monitoring of in smart grids. The performance evaluations and security analysis illustrated that this scheme is secure, reliable, and suitable in terms of lightweight data sharing between in smart grids.