Retrieve last Tx related to a Secret
You can use this endpoint to retrieve the last Tx
related to a Secret fqid
.
Endpoint
GET /txs/secrets/{fqid}/last HTTP/1.1
Host: {api_url}
Content-Type: application/json; charset=utf-8
Url parameters
Name | Type | Length | Description |
---|---|---|---|
fqid | string | = 43 | Fully-qualified id of the Secret (concatenation of a bcid and a Secret id separated by an hyphen) |
Response body
root
Expected message: TxResult
Example
Endpoint
GET /txs/secrets/abcdef-3b1cfd5f-d0fe-478c-ba30-17817e29611e/last HTTP/1.1
Host: https://nodes.test.katena.transchain.io/api/v1
Content-Type: application/json; charset=utf-8
Response body
{
"hash": "5CBD22C3782CDA200BA27488B3BFAC87927DB344036140D37141DCFE31066F59",
"height": 17,
"index": 0,
"status": {
"code": 0,
"message": "ok"
},
"tx": {
"data": {
"value": {
"id": "3b1cfd5f-d0fe-478c-ba30-17817e29611e",
"sender": "9WZEHHZQ6uuJU8MWg8dJauiwkAFHmMsMjFLX7L01BHk=",
"nonce": "uiK0BasgMJHDqiU7hJ9tmDUZ0VQDuvER",
"content": "al8enw++vaoNzADJemiE/fDMFc2IjJhlLDeWJxM+Ae3ezz2Q0K2fI6eCXGCx1s/qYQ=="
},
"type": "certify.secret.nacl_box.v1"
},
"nonce_time": "2020-06-16T07:30:20.290000Z",
"signer_fqid": "abcdef-36b72ca9-fd58-44aa-b90d-5a855276ff82",
"signature": "UkifxaHi+oArxekqks8SZ/esAYRye2kGYHEWcRypHzMdSmo1OdG0pkWIWfdgSARAr1NQpLoWeswHUL/07DTSAA=="
}
}