List recent audit receipts
Query Parameters
Page size. Default 50, clamped to 100 per ADR-0014.
x >= 0When true (default), filter out PEGGED end-state rows. PEGGED is
the "recovered" state — usually noise from the index perspective.
Server-side filter on the to_state value. Closes AC42 — the
previous client-side filter on the web/audit page was correct in
shape but constrained to whatever batch the index returned (default
50 rows). With server filtering the full limit applies to matching
rows. Valid values: PEGGED, DRIFT, DEPEG, CRITICAL, BLACK_SWAN.
Any other value yields HTTP 400 with error: invalid_state.
Response
Index of recent audits, newest first
Class-aware peg state. Mirrors the engine PegState enum and the
peg_state Postgres enum. Used for state, from_state, and to_state
fields across the API.
The state is CLASS-AWARE: an LST reading a −1.4% discount (normal unstaking
spread) is PEGGED, while a fiat stable at far less would be DRIFT. Trust
this value directly rather than imposing a naive discount cut.
PEGGED, DRIFT, DEPEG, CRITICAL, BLACK_SWAN, UNKNOWN Class-aware peg state. Mirrors the engine PegState enum and the
peg_state Postgres enum. Used for state, from_state, and to_state
fields across the API.
The state is CLASS-AWARE: an LST reading a −1.4% discount (normal unstaking
spread) is PEGGED, while a fiat stable at far less would be DRIFT. Trust
this value directly rather than imposing a naive discount cut.
PEGGED, DRIFT, DEPEG, CRITICAL, BLACK_SWAN, UNKNOWN