Skip to content

Files

Latest commit

a196ba8 · Jul 26, 2022

History

History
34 lines (26 loc) · 678 Bytes

EventsTask.md

File metadata and controls

34 lines (26 loc) · 678 Bytes

EventsTask

The EventsTask can be used to monitor one or more events on chain. It's identifier is system.events.

Arguments

EventsTask takes the argument name of type string or string[] for monitoring multiple events, for example:

...
task: system.events
arguments: 
    name: 
        - balances.Transfer
        - staking.Bonded
...

Output

The output for this task will be in the following format:

{
  "name": string, // Name of the event
  "args": {
    "arg1": any,
    "arg2": any,
    ...
  }
}

The key args will contain an object with keys arg1 to argn where n is the total number of arguments in the event.