Abstract: Smart contracts, as self-executing programs on blockchains, have been applied in many Internet of Things (IoT) systems to achieve decentralized, fair, and auditable transaction services.