Latest
Search
K
Comment on page

REST API

In the following examples, replacehttps://lto.example.com with the domain or IP address of your node.

Authorization

A node can be configured with an authorization token. This can be done in case the api of the node is exposed publicly. Once the token is configured the anchoring of hash on the chain requires an authorization header
Authorization: bearer <token>
post
https://lto.example.com
/hash
Anchor a hash on the blockchain
get
https://lto.example.com
/hash/:hash
Verify if a hash was anchored
get
https://lto.example.com
/hash/:hash/encoding/:encoding
Verify if a hash was anchored