Skip to main content

Try it Live

Run EventLog examples in the interactive playground

    Topic0 Semantics

    Non-anonymous events: Topic0 is the keccak256 hash of the event signature:
    Anonymous events: Topic0 is the first indexed parameter (NOT the signature):

    Usage Patterns

    Identifying Event Type

    Filtering by Signature

    Validating Event Structure

    Computing Event Signature

    Empty Topics Array

    If topics array is empty, getTopic0() returns undefined:

    See Also