Enabling Autonomous Machine Economy with On-Chain Logic