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 | No |
Result
| Property | Type | Required |
|---|---|---|
batch | number | Yes |
bodyHash | string | Yes |
epoch | number | Yes |
equivocationProofs | object[] | No |
extraData | number[] | Yes |
hash | string | Yes |
historyHash | string | Yes |
interlink | string[] | No |
isElectionBlock | boolean | No |
justification | unknown | No |
network | string | Yes |
nextBatchInitialPunishedSet | number[] | No |
number | number | Yes |
parentElectionHash | string | No |
parentHash | string | Yes |
producer | unknown | No |
seed | string | Yes |
size | number | Yes |
slots | any[] | No |
stateHash | string | Yes |
timestamp | number | Yes |
transactions | any[] | No |
type | string | Yes |
version | number | Yes |