Skip to main content

GrpcEventFilter

GrpcEventFilter Objects​

class GrpcEventFilter(GrpcEventFilterProtocol)

A filter over events, used to narrow the events returned for a checkpoint.

all​

@classmethod
def all(cls, filters: typing.List[GrpcEventFilter]) -> GrpcEventFilter

Matches events that satisfy every one of the given filters.

any​

@classmethod
def any(cls, filters: typing.List[GrpcEventFilter]) -> GrpcEventFilter

Matches events that satisfy at least one of the given filters.

move_event_package_and_module​

@classmethod
def move_event_package_and_module(
cls,
package_id: ObjectId,
module: typing.Union[object, typing.Optional[str]] = _DEFAULT
) -> GrpcEventFilter

Matches events whose struct is defined in the given Move package (and optional module).

move_event_type​

@classmethod
def move_event_type(cls, struct_tag: StructTag) -> GrpcEventFilter

Matches events with the given Move event struct tag, e.g. 0xabcd::my_module::Foo.

move_package_and_module​

@classmethod
def move_package_and_module(
cls,
package_id: ObjectId,
module: typing.Union[object, typing.Optional[str]] = _DEFAULT
) -> GrpcEventFilter

Matches events emitted in the given Move package (and optional module).

negation​

@classmethod
def negation(cls, filter: GrpcEventFilter) -> GrpcEventFilter

Matches events that do not satisfy the given filter.

sender​

@classmethod
def sender(cls, sender: Address) -> GrpcEventFilter

Matches events emitted by transactions sent from the given address.