nebulasio / neb.js

GNU Lesser General Public License v3.0
83 stars 46 forks source link

how to listen event at javascript client? #33

Closed lwgo2050 closed 6 years ago

lwgo2050 commented 6 years ago

Write Smart Constract like this Event.trigger(...),but how to listen the event? does there have method like solididy "event.watch()"?

yupnano commented 6 years ago

you can use GetEventsByHash to fetch the event of this transaction. Or use Subscribe to subscribe for events of a specified event topic.