Create Link Record

  1. The record owner creates a record via nChain Event

  2. The result is the link Location of the record on the blockchain

  3. The record owner stores the link Location for later processing

  4. Ideally, the record owner should check the status (see Get Link Location Status)

Note: The transaction will be published to a miner asynchronously. Use Get Location Status to find out when the record transaction is confirmed as being on the blockchain.

Example code:

curl -X "POST" \
     -L "$URL/api/v1/linkedrecords" \
     -H "x-api-key: $KEY" \
     -H "accept: text/plain" \
     -H "Content-Type: application/octet-stream" \
     --data-binary "@myRecord.txt"

Example response:

  "txId": "47175b2ee3345942….d58cd286198e1bc97",

The response includes a location that will be used in subsequent operations.

: Extract the location from the response to the create command


Last updated

Copyright © nChain Licensing AG 2024