Open sgerhardt-trilobyte opened 3 years ago
To get raw contract data, the format query option
/api/v1/contracts/{contractId}?format=RAW
exists with the following response (example):
{ "contractId": "60ec1f4c5c22c3001ee0ae2f066d", "state": "SENT", "referenceId": "408d60eda0a666424a34944180b3a4a17a77a21b6b76f0409ff3f51ffade75e3", "blockchainRef": { "type": "hlf", "txId": "f16152ccc527b2d03041ea3b61cb8ceacb3f4fc572affbd46d732369a3802d51", "timestamp": "2021-07-12T10:54:04.000Z" }, "raw":"eyJoZWFkZXIiOnsidHlwZSI6ImNvbnRy...", "creationDate": "2021-07-12T10:54:04.156Z", "lastModificationDate": "2021-07-12T10:54:06.677Z" }
For the usage data endpoint
GET /api/v1/contracts/{contractId}/usages/{usageId}
we need a similar option and response to create correct signature payload for verification
To get raw contract data, the format query option
/api/v1/contracts/{contractId}?format=RAW
exists with the following response (example):
For the usage data endpoint
GET /api/v1/contracts/{contractId}/usages/{usageId}
we need a similar option and response to create correct signature payload for verification