Brain Docs

Reference

TypeScript SDKInstallationHTTP clientWire client
createStatementgetStatementlistStatementssupersedeStatementtombstoneStatementretractStatementstatementHistory
ErrorsRetriesPagination
Brain/Docs
✦ ASKBrain on GitHubDashboard
TypeScript SDKStatementsstatementHistory

statementHistory

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
statementHistory(statementId: string, query?: StatementHistoryQuery): Promise<StatementHistoryResult>
Handshake credentialstable
statementHistory(request: StatementHistoryRequest): Promise<StatementView[]>
statementHistoryFrames(request: StatementHistoryRequest): Promise<StatementHistoryResponseFrame[]>

Parameters

ParameterTypeRequired
statementIdstringrequired

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

includeTombstonedbooleanoptional

Include retired versions.

limitintegeroptional

Page size.

cursorstring (wire: bytes)optional

Cursor from the previous page.

Returns

FieldTypePresence
itemsStatementDetail[]always

The versions.

chainRootstringalways

The chain's stable id.

totalVersionsintegeralways

How many versions exist in total, across all pages.

nextCursorstring

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
supersedeStatementPagination

Was this page helpful?

retractStatement

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

createRelation

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