Can a smart contract be designed to execute its own functions automatically, similar to a cron job?
If so, what mechanisms or features within blockchain platforms support this capability, and what are the best practices for implementing such functionality.
I don’t think that Sui smart contracts can execute its own function automatically. smart contracts are generally reactive, they only execute in response to external transactions or events. Unlike traditional systems where you can have scheduled tasks (like cron jobs), blockchain contracts typically rely on someone (e.g., a user or an off-chain service) to trigger them.
thanks ur answer. True, I think i needa build a bot for execute job.
2 Likes