event
verify_chain
Verify event log density and hash linkage.
strata event verify-chaindb.events.verify_chain() -> 'Any'wire event_verify_chain
Verifies that the visible event log in the selected branch and space is dense and hash-linked: sequences are contiguous from zero, the genesis record links to the all-zeros hash, and every record's hash matches its content and predecessor.
Status commands return a scalar or compact status payload and do not mutate database state.
To see the complete help for this command, run:
strata event verify-chain --helphelp(db.events.verify_chain)
Example
Verify the integrity of the event hash chain.
strata event append user.created {"id":1}strata event verify-chain
_ = db.events.append("user.created", {"id": 1})db.events.verify_chain().valid
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| branch | string or null | no | Target branch. Defaults to the executor handle branch. |
| space | string or null | no | Target product space. Defaults to `"default"`. |
Returns
StatusValue<EventChainVerification>
- dataEventChainVerification
- typestring
Errors
Recover by code. Retry policy and commit outcome come from the shipped error registry.
| Code | Retry | Commit outcome |
|---|---|---|
| failed_precondition.engine.runtime_closed | never | not_started |
| not_found.engine.branch | never | not_applicable |
| invalid_argument.engine.product_space | never | not_started |