Get the history of a nano contract.
GET/wallet/nano-contracts/history
Get the history of a nano contract.
Request
Query Parameters
id stringrequired
ID of the nano contract to get the history from.
count integer
Maximum number of items to be returned. Default is 100.
after string
Hash of transaction to offset the result.
before string
Hash of transaction to offset the result for previous transactions.
Header Parameters
x-wallet-id stringrequired
Define the key of the corresponding wallet it will be executed the request.
Responses
- 200
Success
- application/json
- Schema
- success
- error
Schema
any
History of a nano contract
{
"success": true,
"count": 100,
"history": {
"hash": "5c02adea056d7b43e83171a0e2d226d564c791d583b32e9a404ef53a2e1b363a",
"nonce": 0,
"timestamp": 1572636346,
"version": 4,
"weight": 1,
"signal_bits": 0,
"parents": [
"1234",
"5678"
],
"inputs": [],
"outputs": [],
"metadata": {
"hash": "5c02adea056d7b43e83171a0e2d226d564c791d583b32e9a404ef53a2e1b363a",
"spent_outputs": [],
"received_by": [],
"children": [],
"conflict_with": [],
"voided_by": [],
"twins": [],
"accumulated_weight": 1,
"score": 0,
"height": 0,
"min_height": 0,
"feature_activation_bit_counts": null,
"first_block": null,
"validation": "full"
},
"tokens": [],
"nc_id": "5c02adea056d7b43e83171a0e2d226d564c791d583b32e9a404ef53a2e1b363a",
"nc_method": "initialize",
"nc_args": "0004313233340001000004654d8749",
"nc_pubkey": "033f5d238afaa9e2218d05dd7fa50eb6f9e55431e6359e04b861cd991ae24dc655"
}
}
Nano contract history index not initialized.
{
"success": false,
"message": "Nano contract history index not initialized."
}
Loading...