getBlockByHash
method
Tries to fetch a block given its hash. It has an option to include the transactions in the block, which defaults to false.
Params
Parameter | Type | Required |
---|---|---|
hash | string | Yes |
includeBody | boolean | Yes |
Result
Property | Type | Required |
---|---|---|
hash | string | Yes |
size | number | Yes |
batch | number | Yes |
epoch | number | Yes |
network | string | Yes |
version | number | Yes |
number | number | Yes |
timestamp | number | Yes |
parentHash | string | Yes |
seed | string | Yes |
extraData | number[] | Yes |
stateHash | string | Yes |
bodyHash | string | Yes |
historyHash | string | Yes |
transactions | any[] | No |
additionalFields | object | Yes |