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
Anchor a hash on the blockchain
POST
https://lto.example.com/hash
Request Body
Name
Type
Description
hash
string
encoding
string
Verify if a hash was anchored
GET
https://lto.example.com/hash/:hash
Get chainpoint info of an anchored hash.
Path Parameters
Name
Type
Description
hash
string
anchor hash in hexadecimal format
Verify if a hash was anchored
GET
https://lto.example.com/hash/:hash/encoding/:encoding
Get chainpoint info of an anchored hash in given encoding.
Path Parameters
Name
Type
Description
hash
string
anchored hash
encoding
string
The encoding in which the hash is given. Options are (hex, base58, base64)
Last updated