Help retrieve events and current state for a specific aggregate from Axon Server

Hi,

We need help on implementing our own event store inspection service for retrieving aggregate’s events and current state.

We can’t rely on axonserver dashboard Event Store > Search built-in utility for various reasons.

We want to expose this specific functionality in our back office admin tool for our production operation team’s use.
We want to enable listing of each aggregate’s event payloads by sequence order in a single view, whereas the current axonserver dashboard only allows the user to view each event detail at once.

We also want to retrieve the current (latest) state by replaying the events, instead of the entry from its read-side repository resulting from projection. How can I achieve this?

We’ve discovered:

  1. Axon Server Integration API /v2/aggregates/{aggregateId}/events does not return proper payload
    Axon Server Integration API

“payload”: “eyJjb21wYW55Ijp…”

  1. Using grpc

import io.axoniq.axonserver.grpc.event.GetAggregateEventsRequest

Please help!