Today, mobile devices provide their users with a range of multiple services and powerful applications. Despite being beneficial, these applications are massively relying on gathering sensitive information from the mobile devices, which creates numerous challenges regarding security and latency problems. For instance, these applications’ stakeholders take their time to select mobile device for gathering necessary resources. Therefore, this process of recruiting mobile devices will not be practical with sensing information which has an expiration date, which the time of collecting and recruiting these types of sensing information are surpassing its expiration date. As device-to-device (D2D) paradigms have been established as relevant communication for sharing sensing information in a low latency and minimum cost, it still suffers from mobility problems. Hence, mobile edge caching (MEC) system has been developed to increase efficiency of information sharing with mobility of high-flexibility. Nonetheless this paradigm has some challenges with regards to constructing a satisfactory resource sharing system concerning security and trust ability. The aim of this paper is to propose a novel security and privacy blockchain sharing (SPB-DS) system based on MEC system. A searchable keyword will be recorded on the system’s blockchain for every sensing information and all requester devices that require to download specific sensing information, it will generate a trapdoor first for looking for the matching keyword in the blockchain system. To incentive provider devices an optimal payment mechanism has been developed for those who wish to partake in the system. An analysis of security demonstrates that the suggested protocol can satisfy many security goals, while an evaluation on performance illustrates high feasibility and scalability of the MEC system’s proposed scheme.