Is it possible to fire up event handlers upon transaction creation/confirmation? In this tutorial two event handlers are used on_start() and on_block().

Is it possible to have a finer level of granularity; handlers that manage transaction creation and confirmation?

Following, this this example it also seems possible to execute code outside of the blockchain.

Would it be possible to create a handler that invokes a system call upon transaction confirmation?


As far as I know you only have the two hooks you mention above: on_start() and on_block(), beyond that you'll need to experiment with what's possible. There's very little documentation on the User Service functionality, but all the source is there to learn from.

  • I only need to check whether a contract executed or not. I'm not sure how much I can do from those hooks – Sebi Jun 10 '16 at 17:49
  • 1
    You can check if a contracted executed by looking up the receipt hash it'll return. You don't need the user service for that – dbryson Jun 10 '16 at 18:42
  • Ok, I'll read up on that. My end goal is to be able to launch a syscall depending of the outcome of a transaction. – Sebi Jun 10 '16 at 19:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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