Retrieve Txs related to a Key
You can use this endpoint to retrieve the list of Txs
related to a Key fqid
.
Endpoint
GET /txs/keys/{fqid} 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 Key (concatenation of a bcid and a Key id separated by an hyphen) |
Query parameters
Name | Type | Description |
---|---|---|
page | integer | Page number to return |
per_page | integer | Number of items to return per page |
Response body
root
Expected message: TxResults
Example
Endpoint
GET /txs/keys/abcdef-9941bc28-4033-4d5a-a337-76b640223de2 HTTP/1.1
Host: https://nodes.test.katena.transchain.io/api/v1
Content-Type: application/json; charset=utf-8
Response body
{
"txs": [
{
"hash": "8DBD9D04C7C72E0DF9FA0FCAD9FB5643F432F048E8DAE2713745E5EEA9E1659D",
"height": 11,
"index": 0,
"status": {
"code": 0,
"message": "ok"
},
"tx": {
"data": {
"value": {
"id": "9941bc28-4033-4d5a-a337-76b640223de2",
"public_key": "cfhVwM4RmlbCr8/HO9/xnrdwvKs5kt9NuZIOlOiyk1E=",
"role": "default"
},
"type": "account.key.create.v1"
},
"nonce_time": "2020-06-16T07:24:45.513883Z",
"signer_fqid": "abcdef-36b72ca9-fd58-44aa-b90d-5a855276ff82",
"signature": "rQLNRZ8zoAckBDGX5+kz2al0oarrgWqry1Gbg87+O8LKgnKBNg/5MG/qk6Yfsr64mHkCjsMXEGbBrfMQWs9ECw=="
}
},
{
"hash": "D95F540C10A82DE055FDF6D2CC8FF51DA13C69A9858C8CB1AC26EC02C3B1BA38",
"height": 19,
"index": 0,
"status": {
"code": 0,
"message": "ok"
},
"tx": {
"data": {
"value": {
"id": "9941bc28-4033-4d5a-a337-76b640223de2",
"public_key": "kNA8GaHdyTYlb5hx7+quvEU03jqC02ogWBggGPaing4="
},
"type": "account.key.rotate.v1"
},
"nonce_time": "2020-06-16T07:30:29.920642Z",
"signer_fqid": "abcdef-36b72ca9-fd58-44aa-b90d-5a855276ff82",
"signature": "xg3eghlfqswsBilM8ZyOxrTJXAGpYN7GohFItOEbxr5peYHpIOSOhanOesZ71mxYrnwlaGaZ2vzdKNVmNaISAA=="
}
}
],
"total": 2
}