The rise of digital economy is attributed to the rapid development of a new generation of information technology, represented by the Internet of Things technology. However, the huge number of sensors, limited resources, and lack of robust security mechanism results in great challenges for the traditional centralized access control system. To deal with these challenges, a novel-capability-based access control model, which uses the advantages of the capability-based access control decision-making mechanism and introduces a role set and an attribute set based on smart contract. This model is built to provide a decentralized, flexible, highly scalable, and high-granularity access control system. Furthermore, a token mechanism is adopted in the access control model to enhance the system's capability. Finally, simulation experiment results verified the feasibility and effectiveness of the system.