Proofs
Create a Proofs
POST
https://api.uproofs.apio.cc/proofs
Headers
Name
Type
Description
Authorization
string
apikey YOUR_APIKEY
Request Body
Name
Type
Description
data
string
Data to timestamp
assetId
string
UUID of REGISTERED ASSET
{
"status": true,
"data": {
"assetId": "UUID",
"data": {
"temperature": "20",
"humidity": "40",
"energy": "100"
},
"dataHash": {
"_id": "60ef2315f057add9d59c4e13",
"input": "{\"temperature\":\"20\",\"humidity\":\"40\",\"energy\":\"100\"}",
"hash": "de7a57c35e1067d6ea4b3eeb387676f1bc280f8a0662c29861a93f93b0974ed1",
"hashAlgorithm": "SHA-256"
},
"uuid": "84049640-e08a-4310-bbe4-bd4e95c2b3e0",
"publicUrl": "https://uproofs.apio.cc/proofs/timestamp/84049640-e08a-4310-bbe4-bd4e95c2b3e0",
"blockchain": {
"_id": "60ef2315f057ad0dd79c4e14",
"xDai": {
"_id": "60ef2315f057ad6c769c4e15",
"explorer": "https://blockscout.com/xdai/mainnet/tx/",
"publicKey": "0xc967b0a6a84c7f15527484401d5e361c36016e14",
"transactionInformation": {
"transactionHash": "",
"status": "queued"
}
}
},
"createdAt": "2021-07-14T17:47:01.855Z",
"updatedAt": "2021-07-14T17:47:01.855Z"
}
}
GET a PROOFS
GET
https://api.uproofs.apio.cc/proofs/:id
Headers
Name
Type
Description
password
string
used if data are encrypted
Authorization
string
apikey YOUR_APIKEY
{
"status": true,
"data": {
"assetId": "26ee345c-e645-485b-8605-785d4c8b33fc",
"data": {
"temperature": "20",
"humidity": "40",
"energy": "100"
},
"dataHash": {
"_id": "60df5db1789d43ab320f5450",
"input": "{\"temperature\":\"20\",\"humidity\":\"40\",\"energy\":\"100\"}",
"hash": "de7a57c35e1067d6ea4b3eeb387676f1bc280f8a0662c29861a93f93b0974ed1",
"hashAlgorithm": "SHA-256"
},
"uuid": "8e18e5a8-d564-40a3-9083-5a25b51bb1f6",
"publicUrl": "https://uproofs.apio.cc/proofs/timestamp/8e18e5a8-d564-40a3-9083-5a25b51bb1f6",
"blockchain": {
"_id": "60df5db1789d4315450f5451",
"xDai": {
"_id": "60df5db1789d432fe30f5452",
"explorer": "https://blockscout.com/xdai/mainnet/tx/0x73fcb101186e13113cf96d38df26598a614c80d6fa316729d73249a97af28267",
"publicKey": "0x6a2aa30c2910d1301622d5aabf05da7577c938fc",
"transactionInformation": {
"transactionHash": "0x73fcb101186e13113cf96d38df26598a614c80d6fa316729d73249a97af28267",
"transactionIndex": 18,
"blockHash": "0x64a9fd2761b82a8526411aeaee952877b1f68a988174fcf60a559f8ffbd32bba",
"blockNumber": 16878847,
"cumulativeGasUsed": 10581280,
"gasUsed": 23336,
"from": "0x6a2aa30c2910d1301622d5aabf05da7577c938fc",
"to": "0xb90dadb4c7eb29d0b1e5c5cc53285666be9cba0d",
"contractAddress": null,
"logs": [],
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"status": true,
"type": "0x0",
"timestamp": 1625251265000
}
}
},
"createdAt": "2021-07-02T18:40:49.444Z",
"updatedAt": "2021-07-02T18:41:08.686Z"
}
}
Last updated