Write 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.
Write Encoded Record
The record owner selects any encoders and salt to use
The record owner writes a record to be encoded via nChain Event
nChain Event encodes the record as specified to produce a fingerprint
The fingerprint is written to the blockchain
The result is the fingerprint and its location on the blockchain
The record owner stores the encoder, salt, fingerprint and location for subsequent processing
Example code:
Example cURL response:
The final "output" shows the record that was written to the blockchain.
Write Unencoded Record
The record owner writes an unencoded record via nChain Event
The result is the location of the record on the blockchain
The record owner stores the location for later processing
Example code:
Example cURL response:
Extract Location
At least the location (shown as "txId") should be stored for subsequent operations: