Skip to content
Discussion options

You must be logged in to vote

Event index

The indices indicate the order of emitted events during the TX. After an event is emitted, the event index is incremented.

Hello World example

For your hello world example, the MessageChange event was emitted first and the TX ended with the FeeStatement event. Only two events were emitted.

So, when you query against this TX, you'll see the first event (MessageChange) as being index 0, and the second/last event (FeeStatement) as being index 1.

Other examples

Check out the docs-supplied example for a showcase of a TX with 4 events.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gftea
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants