Skip to content Skip to footer

Insert a hash into the blockchain

Logware’s API has a dedicated endpoint for inserting AES256 hashes into the blockchain.

Hash Insert Method/Url

POST https://api.logware.io/api/hash

Payload

{
    "env":"[test|prod]",
    "hash":"[hash_to_insert]"
}

“env” is the current environment, allowed values are “test” and “prod”. “test” uses the TestNet chain, “prod” uses the live Lynx ‘mainnet’ chain. Accounts must have additional authorization to use the production/live network.

Hash Insert Response

201 - HTTP "Created"
(header)Location: https://api.logware.io/api/hash/[env]/[task_id]
(body)[task_id]

The API’s HTTP response code will be “201” for “created” if the insert request is successful. A “Location” header is included in the response that points to the result for this insert. This URL includes a disposable task ID used to find the results of the insert. This task ID is also included in the response body.

The Task ID is NOT the Transaction ID where your hash is saved into the block chain, that operation may take a moment, think of the task ID like a ticket you’ll use to pick your actual block chain TXID up with later.

Related Articles
0 Comments

There are no comments yet

Leave a comment

Your email address will not be published. Required fields are marked *