1

Is it possible for a contract to somehow trigger an event which an external process may listen for? Or is polling the only practical way currently to determine an outcome in a contract?

2 Answers 2

1

There is no way for smart contract to send any signal to external process however there's some alternative approach that's create processes listen to the blockchain state or event by a period of time.

One more thing, normally a smart contract is called from external tool/agent.

1
  • As the alternative method, do you mean to be saying polling of blockchain state by an external process?
    – expaand
    Jun 23, 2018 at 14:14
1

Check out the demux library for listening to EOS blockchain events. As far as I know there is no event logs like in Ethereum so you have to poll the api node

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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