Oracle's API
Attest with Commit
GET
http://127.0.0.1:8585/attest
Request an attestation message body
Query Parameters
Name | Type | Description |
---|---|---|
commit | string | Commit ID of the committed data |
cid | string | ContractId of the recipient address |
pk | string | Public key of the recipient address |
address | String | Address of the recipient (either a contract address or a public key hash address). |
Attest with Root and Timestamp
GET
http://127.0.0.1:8585/attest
Request an attestation message body
Query Parameters
Name | Type | Description |
---|---|---|
root | string | Root of the Merkle Tree |
timestamp | string | Time of the committed data (in millisecond in epoch format) |
cid | string | Contract ID of the recipient address |
pk | string | ContractId of the Recipient address |
address | String | Address of the recipient (either a contract address or a public key hash address). |
Query the Oracle
GET
http://127.0.0.1:8585/query
Filter the commited data to find the commitment.
Query Parameters
Name | Type | Description |
---|---|---|
high | string | filter the data with the higher timestamp bond |
low | string | Filter the data with the lower timestamp bond |
key | string | Filter by this ticker |
take* | String | Take only the first <n> items (after the skip if there is one). |
skip | String | Skip the first <n> items. |
Count commits
GET
http://127.0.0.1:8585/count/
Count the number of items committed by the service.
Query Parameters
Name | Type | Description |
---|---|---|
high | String | filter the data with the higher timestamp bond |
low | String | Filter the data with the lower timestamp bond |
key | String | Filter by this ticker |
Get the values
POST
http://127.0.0.1:8585/getValues
Query Parameters
Name | Type | Description |
---|---|---|
key | String | Filter by this ticker |
high | String | filter the data with the higher timestamp bond |
low | String | Filter the data with the lower timestamp bond |
Last updated