AbstractIn this manuscript, a blockchain enabled joint trust (MF‐WWO‐WO) algorithm for clustered based energy efficient routing protocol in wireless sensor network (WSN) is proposed for secure data transmission by finding the optimum cluster head (CH) in the network. Here, MayflyWater Wave Optimization (MF‐WWO) algorithm is used for CH selection accurately. After the selection of CH, the malicious node occurs in the cluster. Hence, the multi objective whale optimization algorithm is proposed to find the trust path from the several paths. At last, the optimized selected trust paths are given to the blockchain for communications in the network that is safe and more trustworthy. The simulation is done in MATLAB. The proposed MF‐WWO‐WO achieves high throughput, high efficiency, high network life time, high packet delivery ratio, low delay, low energy consumption, and low packet loss ratio. The outcomes shows the better performance of the proposed approach when compared to the existing approaches, like blockchain and clustered based secured data aware energy efficient using fitness averaged rider optimization algorithm FA‐ROA blockchain and clustered based secured data aware energy efficient using trusted moth flame optimization and genetic optimization algorithm TMFO‐GOA. Finally, the proposed approach attains better energy efficiency and security.