---
title: "Gets the latest logical anchor time. This API allows the Observer and Batch Writer to determine protocol version to be used."
method: GET
path: "/anchor/time"
tags: ["Anchor"]
---

# Gets the latest logical anchor time. This API allows the Observer and Batch Writer to determine protocol version to be used.

`GET /anchor/time`

A anchor time hash must not be predictable/pre-computable, a canonical implementation would be to use the block number as the time and the block hash as the time hash. It is intentional that the concepts related to anchor blocks are hidden from the layers above.

## Response `200`

Success

- AnchorTimeResponse
  - `time` string — The logical anchor time.
  - `hash` string — The hash associated with the anchor time.
  - `previous_hash` string — The hash associated with the previous anchor time.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `500` — Server Error

---

[API](https://skmtc.net/decentralized-identity/apis/sidetree-rest-api.md) · [All operations](https://skmtc.net/decentralized-identity/apis/sidetree-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/decentralized-identity/sidetree-rest-api/versions/9a32549ab92a/schema)
