Create Link Record
The record will be submitted to the blockchain asynchronously. You should use GET Location Status to find out whether the record has been confirmed before performing any other operations on the returned location.
Create Encoded Link
The record owner selects any encoders and salt to use
The record owner creates an encoded link record via nChain Event
nChain Event encodes the record as specified to produce a fingerprint
The linked fingerprint is written to the blockchain
The result is the fingerprint and its link location on the blockchain
The record owner stores the salt, fingerprint and location for later processing
Example code:
Example cURL response:
The final "output" shows the record that was written to the blockchain.
Create Unencoded Link
The record owner creates a record via nChain Event
The result is the link location of the record on the blockchain
The record owner stores the link location for later processing
Ideally, the record owner should check the link location status
Example code:
Example cURL response:
Extract Location
At least the location (shown as "txId") should be stored for subsequent operations: