Define rules for onchain interactions by integrating pre-transaction logic into blockchain-based applications.