eth_getBlockByHash

Returns information of the block matching the given block hash.

Request

This endpoint expects an object.
blockHashstringRequiredformat: "^0x[a-fA-F0-9]{64}$"
Hash of the block to look up.
fullTransactionsbooleanRequired
Set to true to return full transaction objects instead of transaction hashes.

Response

Block details, or null when the block is not found.
numberstring or nullformat: "^0x(?:0|[1-9a-fA-F][a-fA-F0-9]*)$"

Hex-encoded integer quantity.

hashstring or nullformat: "^0x[a-fA-F0-9]{64}$"

32-byte block hash.

parentHashstringformat: "^0x[a-fA-F0-9]{64}$"

32-byte block hash.

noncestring or nullformat: "^0x([a-fA-F0-9]{2})*$"

Hex-encoded byte data.

sha3Unclesstringformat: "^0x([a-fA-F0-9]{2})*$"

Hex-encoded byte data.

logsBloomstring or nullformat: "^0x([a-fA-F0-9]{2})*$"

Hex-encoded byte data.

transactionsRootstringformat: "^0x([a-fA-F0-9]{2})*$"

Hex-encoded byte data.

stateRootstringformat: "^0x([a-fA-F0-9]{2})*$"

Hex-encoded byte data.

receiptsRootstringformat: "^0x([a-fA-F0-9]{2})*$"

Hex-encoded byte data.

minerstringformat: "^0x[a-fA-F0-9]{40}$"

20-byte EVM address.

difficultystringformat: "^0x(?:0|[1-9a-fA-F][a-fA-F0-9]*)$"

Hex-encoded integer quantity.

extraDatastringformat: "^0x([a-fA-F0-9]{2})*$"

Hex-encoded byte data.

sizestringformat: "^0x(?:0|[1-9a-fA-F][a-fA-F0-9]*)$"

Hex-encoded integer quantity.

gasLimitstringformat: "^0x(?:0|[1-9a-fA-F][a-fA-F0-9]*)$"

Hex-encoded integer quantity.

gasUsedstringformat: "^0x(?:0|[1-9a-fA-F][a-fA-F0-9]*)$"

Hex-encoded integer quantity.

timestampstringformat: "^0x(?:0|[1-9a-fA-F][a-fA-F0-9]*)$"

Hex-encoded integer quantity.

transactionslist of strings or objects
uncleslist of strings
totalDifficultystring or nullOptionalformat: "^0x(?:0|[1-9a-fA-F][a-fA-F0-9]*)$"

Hex-encoded integer quantity.

baseFeePerGasstringOptionalformat: "^0x(?:0|[1-9a-fA-F][a-fA-F0-9]*)$"

Hex-encoded integer quantity.