Retrieve last Tx related to a Certificate
You can use this endpoint to retrieve the last Tx
related to a Certificate fqid
.
Endpoint
GET /txs/certificates/{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 Certificate (concatenation of a bcid and a Certificate id separated by an hyphen) |
Response body
root
Expected message: TxResult
Example
Endpoint
GET /txs/certificates/abcdef-ce492f92-a529-40c1-91e9-2af71e74ebea/last HTTP/1.1
Host: https://nodes.test.katena.transchain.io/api/v1
Content-Type: application/json; charset=utf-8
Response body
{
"hash": "A037CD160390D5BBB7A838C9965E719A91BF565FA0D1E65A81AB4FB0DCD88DCC",
"height": 15,
"index": 0,
"status": {
"code": 0,
"message": "ok"
},
"tx": {
"data": {
"value": {
"id": "ce492f92-a529-40c1-91e9-2af71e74ebea",
"value": "b2ZmX2NoYWluX2RhdGFfcmF3X3NpZ25hdHVyZV9mcm9tX2pz"
},
"type": "certify.certificate.raw.v1"
},
"nonce_time": "2020-06-16T07:30:07.025000Z",
"signer_fqid": "abcdef-36b72ca9-fd58-44aa-b90d-5a855276ff82",
"signature": "9EmU6j56Rt/tc7Lnl9KkUkSdUqVJf/J+dW4tkIh8QBPI/ZE7AdchdBlsyl/HtInFzPeKcnlY7oG8qbFEPYiKDA=="
}
}