get_public_events

Function get_public_events 

pub async fn get_public_events(
    node: &(impl AztecNode + ?Sized),
    event_metadata: &EventMetadataDefinition,
    filter: PublicEventFilter,
) -> Result<GetPublicEventsResult<BTreeMap<String, Fr>>, Error>
Expand description

Query and decode public events from the node.

Fetches all public logs matching the filter, then performs client-side filtering by event selector (matching the last field of each log against the selector from event_metadata). This mirrors the upstream TS SDK behaviour where the node returns all logs and the client skips non-matching selectors.