Triggers
Event tasks
Run a fixed call when a contract emits a log.
An event task watches a contract for one event signature. When it sees the log, it runs the call you set when creating the task.
- The call is fixed. The event decides only when it runs, so data from the log is never passed in by the keeper.
- If you need values from the event, store them in your contract when it emits and read them in the called function, or use a condition task.
- Keepers watch new blocks and replay recent ones after a reconnect, so a log is not missed during a short outage.