Skip to main content

Try it Live

Run EventLog examples in the interactive playground

    Usage Patterns

    ERC-20 Transfer Filtering

    Multi-Token Monitoring

    Multiple Event Types

    Block Range Analysis

    Specific Block Query

    Progressive Filtering

    Combining with Sorting

    Empty Filter

    Empty filter returns all logs:

    Performance

    filterLogs is optimized for batch operations: Internal optimizations:
    • Single pass through input array
    • Early exit for non-matching logs
    • Efficient address/hash comparisons
    Best practices:

    Return Value

    Returns new array (doesn’t modify input):

    See Also