Usage
The Notary SDK streamline the process of calling Notary APIs. Import
const NotarySDK = require('notary-js-sdk');Instance
Create new instance of the notrary SDK passing the mandatory API_KEY and ENVIRONMENT (one of staging,production)
const sdk = new NotarySDK("YOUR_API_KEY", "staging");Stamp Here's a simple example how to create a timestamp of arbitrary data
sdk.stamp(sdk.message.FromString("My random data"))
.then(({ TopicId }) => {
console.log("Subscirbed to topic with id " + TopicId);
}).catch(err => console.error(err));
Last updated
Was this helpful?