How to Use nChain Event
Last updated
Last updated
Follow these steps:
Build an adapter to use the nChain Event REST API, so that your application can register and verify the data in your existing applications.
Configure your adapter to use the URL and API key provided for your nChain Event deployment.
Your applications Write independent Records or Create Linked Records on the blockchain via your adapter.
The resultant location of the operation must be stored in your adapter or your applications and associated with the Record.
Anytime later, your applications can check the status of the location (not shown) and verify that the Record is consistent with the blockchain.
If the result is mismatched, this is indicative of a fault in your process or your copy of the Record.
This user guide provides cURL and JavaScript examples. cURL can be directly executable in a terminal window and can be easily translated to the language of your choice by cURL converters which are readily available on the internet. The Javascript examples use fetch() from the Fetch API.
The REST API endpoints are described for independent records here and for linked records here.
Pseudocode is provided in tutorials for independent records here and for linked records here.