The fifth-generation of cellular mobile communications (5G) networks promotes the internet of everything, smart devices are setting to penetrate each piece of our life, generating a large amount of data. Data sharing is essential to derive the inherent value, either in the form of social/financial gain or strategic competitive advantage. However, the concerns of security and the deficiency of effective incentive in the Internet of things (IoT) lead to the poor willingness of data sharing. Such considerations call for novel IoT data-sharing protocols that can achieve better data security and provide a more attractive incentive mechanism. In this paper, we exploit smart contracts, re-encryption, and hash-chain to propose a reliable streaming data sharing scheme. Firstly, the incentives to stimulate the owner’s enthusiasm of sharing data is considered, our scheme provides authorized user accessible to the shared data and provides data providers profits to share data. Secondly, a n-time query mechanism that provided flexible data access is designed, in which authorized users can query the data n times within an agreed time. Since the query voucher and every successful query is recorded and verified by smart contract, everyone in the blockchain network can validate it, the trustfulness of data access are ensured. The analysis showed that our scheme has better performance than some of the current data sharing schemes, and the experiment is conducted to demonstrate the effectiveness of our design.