supersedeStatement
Correct a claim by writing its replacement — the old version stays readable and the chain records the order.
supersedeStatement(statementId: string, input: CreateStatementInput): Promise<SupersedeStatementResult>supersedeStatement(request: StatementSupersedeRequest): Promise<StatementSupersedeResponse>Parameters
statementIdstringrequiredThe statement being replaced.
(new statement)CreateStatementInputrequiredA whole new statement, with the same fields createStatement takes. On the wire this is newStatement inside a StatementSupersedeRequest, with the old id as oldStatementId.
Returns
newStatementIdstringalwaysThe replacement.
chainRootstringalwaysUnchanged — the chain root is stable across versions.
versionintegeralwaysThe new version number.
Every version has its own id; only chainRoot is stable. A reference that
should mean "where Priya works" belongs on the chain root, and a reference
that should mean "the claim as it stood in March" belongs on the version.
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.
Was this page helpful?