0

I'm currently working with Ethereum and smart contracts. I see that a contract can define events and emit them. Each event defines no target, so I assume it will be broadcast. But I wonder how to listen to these events from a nodejs server or web client. Do I have to poll Ethereum nodes continuously for determining if my event is dispatched or not. Is there any way to dispatch event directly to a target (like web callback or web hooks)?

Thank you!

1

You can refer to this link to solve your doubts.

Listen to events using web.js

  • Hi there. Can you include some details from the link in your answer? If the link becomes dead, or gets moved, then the answer becomes useless. – Richard Horrocks Jun 25 at 14:22

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.