Overview
Anchor verification confirms two things:- Anchor integrity (
valid) — the Merkle root stored in the anchor matches the Merkle root recomputed from the underlying events. - Anchor chain integrity (
chain_valid) — theprevious_anchor_hashcorrectly references the preceding anchor.
List Anchors
Retrieve your workspace’s blockchain anchors:Get Anchor Detail
Retrieve a single anchor with additional fields (first_event_hash, last_event_hash):
Verify an Anchor
The verify endpoint recomputes the Merkle root from the underlying events and checks the anchor chain:Verify Response
Response Fields
| Field | Type | Description |
|---|---|---|
anchor_id | string | The anchor identifier |
merkle_root | string | The 64-character hex Merkle root stored in this anchor |
valid | boolean | Whether the recomputed Merkle root matches the stored one |
chain_valid | boolean | Whether the previous_anchor_hash correctly references the preceding anchor |
expected | string | The Merkle root recomputed from the underlying events |
actual | string | The Merkle root stored in the anchor record |
events_count | integer | Number of events included in this anchor’s Merkle tree |
tx_hash | string | The blockchain transaction hash (null if not yet confirmed) |
explorer_url | string | Direct link to the transaction on Basescan |
Understanding Failures
valid: false
The Merkle root recomputed from the underlying events does not match the stored Merkle root. This means events were modified, inserted, or deleted after the anchor was created. The expected and actual fields show the mismatch.
chain_valid: false
The previous_anchor_hash does not match the expected value computed from the preceding anchor’s merkle_root and tx_hash. This means an anchor was modified, inserted into, or deleted from the anchor chain.