Brain Docs

Reference

Rust SDKInstallationHTTP clientWire client
create_statementget_statementlist_statementssupersede_statementtombstone_statementretract_statementstatement_history
ErrorsRetriesPagination
Brain/Docs
✦ ASKBrain on GitHubDashboard
Rust SDKStatementsstatement_history

statement_history

Every version in a statement's supersession chain, oldest to newest.

PURPOSE

Every version in the chain the given statement belongs to. The audit view of a claim that has been corrected.

GET/v1/statements/:id/historyBearer API keystable
async fn statement_history(&self, statement_id: &str, query: &StatementHistoryQuery) -> Result<StatementHistoryResult, BrainHttpError>
Handshake credentialstable
async fn statement_history(&self, request: &StatementHistoryRequest) -> Result<Vec<StatementView>>
async fn statement_history_frames(&self, request: &StatementHistoryRequest) -> Result<Vec<StatementHistoryResponseFrame>>

Parameters

ParameterTypeRequired
statement_idstringrequired

Any version in the chain — the history is the same from any of them. On the wire the field is anchorId.

include_tombstonedbooleanoptional

Include retired versions.

limitintegeroptional

Page size.

cursorstring (wire: bytes)optional

Cursor from the previous page.

Returns

FieldTypePresence
itemsStatementDetail[]always

The versions.

chain_rootstringalways

The chain's stable id.

total_versionsintegeralways

How many versions exist in total, across all pages.

next_cursorstring

Absent on the last page.

On the wire

subject is UUID bytes and kind is an integer discriminant rather than a string. evidence is a single reference, not an array of ids. Every request carries a requestId plus an optional actAs.

See also
supersede_statementPagination

Was this page helpful?

retract_statement

Tombstone a claim and schedule its bytes to be zeroed — and read the deadline it returns.

create_relation

Assert a typed, directed, time-bounded edge between two entities — and the cardinality rule that can reject it.

On this page

ParametersReturnsOn the wire
Suggest an editOpen in Playground