Introduction
Search…
Create UniquID Contract

Login to organization

Navigate to directory where you saved the credentials.json file
1
cd /path/to/file/
Copied!
You may need to re-login if the token has expired.
1
uniquid login --credentials-file credentials.json
Copied!

Check devices

Check for the devices appear on the UniquID organization. This can be done with the following command:
1
uniquid list-devices
Copied!

Create contract file

Create a new file called contract.json with the following content. Be sure to replace the placeholders with your own information
contract.json
1
[
2
{
3
"provider" : "tpub of the authorizer from the uniquid list-devices command",
4
"user" : "tpub of the deivce from the uniquid list-devices command",
5
"functions" : [32]
6
}
7
]
Copied!
The "provider" is the AWS-IOT-UNIQUID-AUTHORIZER and the "user" is the JS or C device.

Create contract

Create and deploy the contract
1
uniquid create-contracts --input-json-file contract.json
Copied!
Check contract list
1
uniquid list-contracts --output json
Copied!
Look at the log from the device and check here for published timestamps from the Device (please note that the link provided is for the us-east-2 AWS region, you may need to switch to the one you have defined on aws configure).
Last modified 2yr ago