Rational Contracts: Data-driven Service Provisioning in Blockchain-powered Systems

Smart Contracts (SCs), which are software programs that run on blockchain platforms, provide appealing security guarantees characterized by decentralized, autonomous, and verifiable execution. On the other hand, Service Provisioning (SP) systems (i.e., systems that assign users to service providers in a way that maximizes the global utility) have been leveraging SCs to provide trust and transparency features. Such features are obtained by deploying the SP’s assignment criteria as an SC on the blockchain. However, deploying optimal assignment criteria as SCs does not guarantee the best performance over time since the blockchain participants join and leave flexibly, and their load varies with time, potentially deeming the initial assignment sub-optimal. Furthermore, modifying the criteria manually by a third party at every variation in the blockchain jeopardizes the autonomous and independent execution promised by SCs. Thus, in this paper, we propose the use of online learning SCs that leverage the chained data to continuously self-tune their assignment criteria and maintain maximum utility. We show that the proposed data-driven method can achieve high performance on the multi-stage assignment problem. We also compare the proposed approach to multiple assignment algorithms as well as planning methods. Results show a significant performance advantage over heuristics and better adaptability to the dynamic nature of blockchain networks compared to planning techniques.