I know currently, we can use the Ethereum Alarm Clock and Aion scheduling system to execute the function automatically, but according to what I know, it only can work in Main Net and Test Net(Rposten). My question is, Is that possible to work in the private chain by using one of these two solutions(EAC or Aion). If both ways can't work in a private chain, Are there any solution to execute the function automatically in the private chain?
In the case of Aion, you have the smart contract available on the Aion's GitHub page, so you can just deploy it in your private network. However, you will need to develop the script that executes the transactions as this has not been made available in the Aion page. But this basically read the logs of the
ScheduleCallEvent, the parameters of this event are all you need for your script to be able to call the
This is a big difference between
Aion. EAC saves a lot of data in the network. All this causes a huge difference in gas consumption for scheduling transactions,
EAC uses about 500K gas for a single transaction, Aion uses only about 80K.
Hope this helps.
Just right a
cron job that will execute a script that will
send transaction to the network and invokes the
function. I think the
Aion are doing the same thing.