eth_getBlockByHash
Returns information about a block by hash.
Params
(2)1. Block hash (required)
string
Match pattern:
^0x[0-9a-f]{64}$
2. Hydrated transactions (required)
boolean
Result
(Block information)parentHash
stringMatch pattern:
^0x[0-9a-f]{64}$
sha3Uncles
stringMatch pattern:
^0x[0-9a-f]{64}$
miner
stringMatch pattern:
^0x[0-9,a-f,A-F]{40}$
stateRoot
stringMatch pattern:
^0x[0-9a-f]{64}$
transactionsRoot
stringMatch pattern:
^0x[0-9a-f]{64}$
receiptsRoot
stringMatch pattern:
^0x[0-9a-f]{64}$
logsBloom
stringMatch pattern:
^0x[0-9a-f]{512}$
difficulty
stringMatch pattern:
^0x[0-9a-f]*$
number
stringMatch pattern:
^0x([1-9a-f]+[0-9a-f]*|0)$
gasLimit
stringMatch pattern:
^0x([1-9a-f]+[0-9a-f]*|0)$
gasUsed
stringMatch pattern:
^0x([1-9a-f]+[0-9a-f]*|0)$
timestamp
stringMatch pattern:
^0x([1-9a-f]+[0-9a-f]*|0)$
extraData
stringMatch pattern:
^0x[0-9a-f]*$
mixHash
stringMatch pattern:
^0x[0-9a-f]{64}$
nonce
stringMatch pattern:
^0x[0-9a-f]{16}$
totalDifficulty
stringMatch pattern:
^0x([1-9a-f]+[0-9a-f]*|0)$
baseFeePerGas
stringMatch pattern:
^0x([1-9a-f]+[0-9a-f]*|0)$
withdrawalsRoot
stringMatch pattern:
^0x[0-9a-f]{64}$
size
stringMatch pattern:
^0x([1-9a-f]+[0-9a-f]*|0)$
transactions
withdrawals
array[Validator withdrawal]index
stringMatch pattern:
^0x([1-9a-f]+[0-9a-f]{0,15})|0$
validatorIndex
stringMatch pattern:
^0x([1-9a-f]+[0-9a-f]{0,15})|0$
address
stringMatch pattern:
^0x[0-9,a-f,A-F]{40}$
amount
stringMatch pattern:
^0x([1-9a-f]+[0-9a-f]{0,31})|0$
uncles
array[string]