Anchor
Gets the latest logical anchor time. This API allows the Observer and Batch Writer to determine protocol version to be used.
Changed onA 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.
get/anchor/time/{time-hash}
Request
- Base URLhttps://virtserver.swaggerhub.com/sidetree/v1
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
time-hashstring required
The hash associated with the anchor time
Response
Success
Example response
{
"time": "545236",
"hash": "0000000000000000002443210198839565f8d40a6b897beac8669cf7ba629051",
"previous_hash": "0000000000000000002443210198839565f8d40a6b897beac8669cf7ba629051"
}Changes
- info
endpoint added
- info
- breaking
api path removed without deprecation
- breaking