Return the transaction history
GET/wallet/tx-history
Return the transaction history
Request
Query Parameters
limit integer
Sort and return only the quantity in limit.
Header Parameters
x-wallet-id stringrequired
Defines the key of the wallet on which the request will be executed.
Responses
- 200
Return the transaction history
- application/json
- Schema
- success
- wallet-not-ready
- no-wallet-id
- invalid-wallet-id
Schema
any
Success
{
"0000340349f9342c4e5eda6f818697f6c1748a81e2ff4b67bc2211d7f8761b11": {
"tx_id": "0000340349f9342c4e5eda6f818697f6c1748a81e2ff4b67bc2211d7f8761b11",
"version": 1,
"timestamp": 1578430704,
"is_voided": false,
"inputs": [
{
"value": 1,
"token_data": 0,
"script": "dqkU98E1NAiRn3fV4nBm1S3e5pPssF+IrA==",
"decoded": {
"type": "P2PKH",
"address": "HV78k3MkUmt6no59cV1kCJzo2CfPXGNmRv",
"timelock": null
},
"token": "00",
"tx_id": "00000a6d244e17e22969f2c2ef339a557bc96540bbbef1350c26c445291e5430",
"index": 1
},
{
"value": 2,
"token_data": 0,
"script": "dqkUje1HF10tIOWS36q73Rpbud3BcAyIrA==",
"decoded": {
"type": "P2PKH",
"address": "HKTZujeJEBeM22UmRWkuKJaDnzbAfFzwRe",
"timelock": null
},
"token": "00",
"tx_id": "0000276ec988df605b56072065f1b9f2395966a3c7c17c692078b2bca43fad8c",
"index": 1
}
],
"outputs": [
{
"value": 3,
"token_data": 0,
"script": "dqkUJdUWQm2UfnCXkwoSj7/2SNmjt5+IrA==",
"decoded": {
"type": "P2PKH",
"address": "H9yAeyxwA7zbpovZZTkpqWJZYsE4hHnvmP",
"timelock": null
},
"token": "00",
"spent_by": "000008d7e62d394be9b07c0fe9c69b289e44dbe1350e2100c169fc030ac936ff"
}
],
"parents": [
"0000276ec988df605b56072065f1b9f2395966a3c7c17c692078b2bca43fad8c",
"00000a6d244e17e22969f2c2ef339a557bc96540bbbef1350c26c445291e5430"
]
},
"0000276ec988df605b56072065f1b9f2395966a3c7c17c692078b2bca43fad8c": {
"tx_id": "0000276ec988df605b56072065f1b9f2395966a3c7c17c692078b2bca43fad8c",
"version": 1,
"timestamp": 1578430668,
"is_voided": false,
"inputs": [
{
"value": 4398,
"token_data": 0,
"script": "dqkUfZRahPx5JF7l8qFzwVjiV1tmhweIrA==",
"decoded": {
"type": "P2PKH",
"address": "HHy8a7QvQmj727beKFuiYziGb7mi7CdrG3",
"timelock": null
},
"token": "00",
"tx_id": "00000a6d244e17e22969f2c2ef339a557bc96540bbbef1350c26c445291e5430",
"index": 0
}
],
"outputs": [
{
"value": 4396,
"token_data": 0,
"script": "dqkUJdUWQm2UfnCXkwoSj7/2SNmjt5+IrA==",
"decoded": {
"type": "P2PKH",
"address": "H9yAeyxwA7zbpovZZTkpqWJZYsE4hHnvmP",
"timelock": null
},
"token": "00",
"spent_by": "00000174753194de2affba45874ef36c92e0ae270442f2410207cf2ee3d06950"
},
{
"value": 2,
"token_data": 0,
"script": "dqkUje1HF10tIOWS36q73Rpbud3BcAyIrA==",
"decoded": {
"type": "P2PKH",
"address": "HKTZujeJEBeM22UmRWkuKJaDnzbAfFzwRe",
"timelock": null
},
"token": "00",
"spent_by": "0000340349f9342c4e5eda6f818697f6c1748a81e2ff4b67bc2211d7f8761b11"
}
],
"parents": [
"00000a6d244e17e22969f2c2ef339a557bc96540bbbef1350c26c445291e5430",
"000009fe61f75076b0c1abde1ee1881e4886bad80a09e699cb599b538934ce33"
]
}
}
Wallet is not ready yet
{
"success": false,
"message": "Wallet is not ready.",
"state": 1
}
No wallet id parameter
{
"success": false,
"message": "Parameter 'wallet-id' is required."
}
Wallet id parameter is invalid
{
"success": false,
"message": "Invalid wallet-id parameter."
}
Loading...