👨💻 Get block by hash
Code samples
GET /api/v1/trx/block/hash/{blockHash}
Returns the block details for the specified block hash
🛠️ Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| blockHash | path | string | true | Block hash |
Example responses
200 Response
{
"blockID": "00000000048471f4f94914a0bf4d7c3f6395a6edfa22fdbc9a36eb6f6f9508a0",
"block_header": {
"raw_data": {
"number": 75788788,
"txTrieRoot": "11ba221a9771a6c51348250dfdf9568b5d8b30d3fded2f47ecb298d34bbdde2e",
"witness_address": "41d376d829440505ea13c9d1c455317d51b62e4ab6",
"parentHash": "00000000048471f3024c7c868dad0c129a064c92e3cc8bc381a3b48d5ee19ded",
"version": 32,
"timestamp": 1758026295000
},
"witness_signature": "f7b7c0fc2eb83f07434b0febc0c734f6075888298a39ab84392f06dbd235ba0277507a650e6912c0c04f19ee017c3b990fbae185ffb95e7ae501a74fa20e995001"
},
"transactions": [
{
"txID": "0bfab65d6bc6d940e4b4c93f322f32431aebde58bd4560416afe50147af57607",
"ret": [
{
"contractRet": "SUCCESS"
}
],
"raw_data": {
"contract": [
{
"type": "TriggerSmartContract",
"parameter": {
"value": {
"contract_address": "41a614f803b6fd780986a42c78ec9c7f77e6ded13c",
"owner_address": "41c337cc0dff83d9642ddc9086633144a24b11d3cd",
"data": "a9059cbb..."
}
}
}
],
"timestamp": 1758026291950
}
}
]
}
🔁 Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Successful response | Inline |
| 500 | Internal Server Error | Internal server error | None |