Skip to main content

GrpcEventFilter

GrpcEventFilter​

class GrpcEventFilter

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

all(filters:)​

static func all(filters: [GrpcEventFilter]) -> GrpcEventFilter

Matches events that satisfy every one of the given filters.

any(filters:)​

static func any(filters: [GrpcEventFilter]) -> GrpcEventFilter

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

moveEventPackageAndModule(packageId:module:)​

static func moveEventPackageAndModule(packageId: ObjectId, module: String? = nil) -> GrpcEventFilter

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

moveEventType(structTag:)​

static func moveEventType(structTag: StructTag) -> GrpcEventFilter

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

movePackageAndModule(packageId:module:)​

static func movePackageAndModule(packageId: ObjectId, module: String? = nil) -> GrpcEventFilter

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

negation(filter:)​

static func negation(filter: GrpcEventFilter) -> GrpcEventFilter

Matches events that do not satisfy the given filter.

sender(sender:)​

static func sender(sender: Address) -> GrpcEventFilter

Matches events emitted by transactions sent from the given address.