0

Using Oracle we can call scheduled functions. But is it possible to cancel scheduled function? I mean, for example, if I scheduled an function that updates something in my contract in 10 minutes but in 5 minutes I changed my mind, I don't need update something. In this case, can I cancel scheduled function?

  • A small piece of advice: if you're hoping to get a proper answer - more code, less words. – goodvibration Mar 27 at 14:03
2

No, Oraclize does not allow you to cancel your request. Other options allow this, for instance Aion Scheduling System allows you to cancel the request and get back the fee if you cancel at least 20 blocks before the scheduled time. Ethereum clock Alarm also allows you to cancel scheduled transactions.

Hope this helps.

1

It should be possible to save an id when the call is scheduled and revert when the oracle call and you do not want to process that id.

But since the call was done the system may charge for it anyway.

  • 1
    Yes, it's possible to revert but with standard payment model of Oraclize, you pre-pay for callbacks so it's counter-productive. Anyway, thanks for your answer! – Aleksandr Mar 28 at 7:43

Not the answer you're looking for? Browse other questions tagged or ask your own question.