Get block at height
GET/block_at_height
Returns the block at specific height in the best chain.
Request
Query Parameters
height intrequired
Height of the block to get
include_transactions string
Possible values: [txid
, full
]
Add transactions confirmed by this block.
Responses
- 200
Success
- application/json
- Schema
- success
- error
Schema
any
Success block height 1
{
"success": true,
"block": {
"tx_id": "080c8086376ab7105d17df1127a68ededf54029a21b5d98841448cc23b5123ff",
"version": 0,
"weight": 1,
"timestamp": 1616094323,
"is_voided": false,
"inputs": [],
"outputs": [
{
"value": 6400,
"token_data": 0,
"script": "dqkU4yipgEZjbphR/M3gUGjsbyb1s76IrA==",
"decoded": {
"type": "P2PKH",
"address": "HTEEV9FJeqBCYLUvkEHsWAAi6UGs9yxJKj",
"timelock": null
},
"token": "00",
"spent_by": null
}
],
"parents": [
"339f47da87435842b0b1b528ecd9eac2495ce983b3e9c923a37e1befbe12c792",
"16ba3dbe424c443e571b00840ca54b9ff4cff467e10b6a15536e718e2008f952",
"33e14cb555a96967841dcbe0f95e9eab5810481d01de8f4f73afb8cce365e869"
],
"height": 1
}
}
Block not found
{
"success": false,
"message": "Does not have a block with height 100."
}
Loading...