Skip to main content

Try it Live

Run EventLog examples in the interactive playground

    Indexed Parameter Limits

    Solidity events can have maximum 3 indexed parameters (topic1-topic3):
    Anonymous events can have 4 indexed parameters (topic0-topic3):

    Usage Patterns

    Extracting Transfer Parameters

    Validating Parameter Count

    Destructuring Parameters

    Empty Indexed Topics

    Anonymous Event Handling

    Extracting Addresses from Topics

    Addresses in topics are left-padded to 32 bytes. Extract the address by taking the last 20 bytes:

    See Also