Scheduled execution of a function inside the SC (automatic)

Hi,

what approach do you use to automatically execute a function inside the smart contract once per day or on a give date in the future?
This function uses gas fee. Do you send some ETH to the smart contract and than this contract uses this ETH to execute the function? How do you program when the function is run?

Thanks in advance!

Hi,
You’ll have to make a transaction when you want that function to be executed, you’ll have to handle this of chain and send the transaction at a specified moment in time. Or you let the users to make the transaction in case that is something that they receive back from that transaction.

1 Like