Use On-chain Scheduler
Last updated
Was this helpful?
Last updated
Was this helpful?
You can use the on-chain scheduler contract to schedule a recurring call to execute a given smart contract. Read more on use cases for the on-chain auto-scheduler .
Contract source code .
Note: the min_delay
is minimum number of blocks after current blocks before the scheduled call will be called. i.e. Pass 0 means it will be scheduled to be called on next block. Calling scheduleCall
with min_delay = 5
on block 10 will scheduled the call on block 10 + 1 + 5 = 16
. If the block are full or there are too many other scheduled tasks, the scheduled call could be deferred to later blocks until there is enough remaining spaces in the block.
ScheduleCall contract address: 0x0000000000000000000000000000000000000808
Follow this tutorial to write and deploy a basic automatic subscription contract on Acala EVM.
a recurring payment contract example using the scheduler.