event

range

Read a range of events by sequence number.

strata event range

wire event_range

Reads events from the selected branch and space by sequence range. The start sequence is inclusive and the optional end sequence is exclusive; reverse direction returns the same `[start_seq, end_seq)` window in descending order (newest first). An optional event type narrows the results.

Paginated responses use opaque cursors. Clients should pass the returned cursor back to the same command shape and must not parse cursor contents.

To see the complete help for this command, run:

strata event range --help

Example

Read a range of events by sequence.

strata event append user.created {"id":1}strata event append user.updated {"id":2}strata event range 0 --direction forward

Parameters

NameTypeRequiredDescription
directionEventRangeDirectionyesResult ordering.one of: forward, reverse
start_seqintegeryesInclusive lower bound of the sequence window (same in both directions).
branchstring or nullnoTarget branch. Defaults to the executor handle branch.
end_seqinteger or nullnoOptional exclusive upper bound of the sequence window (same in both directions).
event_typestring or nullnoOptional event type filter.
limitinteger or nullnoOptional item limit.
spacestring or nullnoTarget product space. Defaults to `"default"`.

Returns

Page<EventVersionedData, u64>

  • dataobject

    Shared pagination continuation facts.

  • typestring

Errors

Recover by code. Retry policy and commit outcome come from the shipped error registry.

← All 10 Events commands

agents: this page as markdown → /docs/reference/event/range.md