EventFilter

@Serializable
data class EventFilter(val type: GetEventsRequest.EventFilterType? = null, val contractIds: List<String>? = null, val topics: List<List<String>>? = null)

Filter configuration for event matching.

Constructors

Link copied to clipboard
constructor(type: GetEventsRequest.EventFilterType? = null, contractIds: List<String>? = null, topics: List<List<String>>? = null)

Properties

Link copied to clipboard

List of contract IDs to filter by. Maximum 5 contract IDs allowed. If null or empty, matches events from any contract.

Link copied to clipboard

List of topic filters. Each inner list represents ONE topic filter containing segments. Multiple topic filters are OR'd together - an event matches if it satisfies ANY filter. Topic values must be base64-encoded XDR SCVal strings or wildcards. Maximum 5 topic filters per request. Each topic filter can have 1-4 segments (plus optional trailing wildcard).

Link copied to clipboard

Type of events to match (contract or system). If omitted, matches all event types (system, contract, and diagnostic).