Parameters
- hashstringREQUIRED
The hash (32 bytes) of the block
- transaction detail flagbooleanREQUIRED
It returns the full transaction objects when it is true otherwise it returns only the hashes of the transactions
Returns
- objectobject | null
A block object, or null when no block was found:
- baseFeePerGasstring
(Optional) A string of the base fee encoded in hexadecimal format. Please note that this response field will not be included in a block requested before the EIP-1559 upgrade
- blobGasUsedstring
The amount of gas used by the blob
- difficultystring
The integer of the difficulty for this block encoded as hexadecimal
- excessBlobGasstring
The excess gas used by the blob
- extraDatastring
The “extra data” field of this block
- gasLimitstring
The maximum gas allowed in this block encoded as a hexadecimal
- gasUsedstring
The total used gas by all transactions in this block encoded as a hexadecimal
- hashstring | null
The block hash of the requested block. null if pending
- parentBeaconBlockRootstring
The root of the parent beacon block in hexadecimal format
- logsBloomstring | null
The bloom filter for the logs of the block. null if pending
- minerstring
The address of the beneficiary to whom the mining rewards were given
- mixHashstring
A string of a 256-bit hash encoded as a hexadecimal
- noncestring | null
The hash of the generated proof-of-work. null if pending
- numberstring | null
The block number of the requested block encoded as a hexadecimal. null if pending
- parentHashstring
The hash of the parent block
- receiptsRootstring
The root of the receipts trie of the block
- sha3Unclesstring
The SHA3 of the uncles data in the block
- sizestring
The size of this block in bytes as an Integer value encoded as hexadecimal
- stateRootstring
The root of the final state trie of the block
- timestampstring
The unix timestamp for when the block was collated
- transactionsarray
An array of transaction objects - please see eth_getTransactionByHash for exact shape
- transactionsRootstring
The root of the transaction trie of the block
- unclesarray
An array of uncle hashes
- withdrawalsarray
A withdrawals object contains information about withdrawals made by validators. Please note that this field will not be included in a block requested before the EIP-4895 upgrade
- indexstring
The index of the withdrawal to uniquely identify each withdrawal
- validatorIndexstring
The index of the validator who initiated the withdrawal
- addressstring
The address to which the withdrawn amount is sent
- amountstring
The amount of ether, provided in hexadecimal format, corresponding to a certain value in gwei
- withdrawalsRootstring
The Merkle root of withdrawal data. Also, please note that this field will not be included in a block requested before the EIP-4895 upgrade
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"hash": "0x9b214ef7f148a8fbf72c43774782dbafb4ee59aaada00e672a321a5c3905900b",6"parentHash": "0xaf643c09146a3a717a6805c588d66534f38884eec13bf274e0dca41cf5845817",7"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",8"miner": "0xdcf18931d46059501f308b2becacc76507d9e21d",9"stateRoot": "0x9e01ca830150984baabddebd3abe1dab3fa3d6c882c30cdc5d0c290e7944c863",10"transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",11"receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",12"withdrawalsRoot": "0x19093be58925dde9b389d169c1df9b04b4790e2ed46482487c6d29d21305e205",13"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",14"difficulty": "0x0",15"number": "0xcec",16"gasLimit": "0x1c9c380",17"gasUsed": "0x0",18"timestamp": "0x678e7b0a",19"mixHash": "0x012f43c43d7839813a1f627093fdd1dc059a3027136cf11cf6463d6df9329160",20"nonce": "0x0000000000000000",21"baseFeePerGas": "0x7",22"blobGasUsed": "0x0",23"excessBlobGas": "0x0",24"parentBeaconBlockRoot": "0xf75e4d5ede58a5de5fe43c7a1b85681c5b9840d0684b5cb5b322f1634119558f",25"extraData": "0xd983010e0b846765746889676f312e32322e3130856c696e7578",26"size": "0x288",27"uncles": [],28"transactions": [],29"withdrawals": [30{31"index": "0xffffffffffffffff",32"validatorIndex": "0xffffffffffffffff",33"address": "0x0000000000000000000000000000000000000000",34"amount": "0x0"35}36]37}38}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"hash": "0x9b214ef7f148a8fbf72c43774782dbafb4ee59aaada00e672a321a5c3905900b",6"parentHash": "0xaf643c09146a3a717a6805c588d66534f38884eec13bf274e0dca41cf5845817",7"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",8"miner": "0xdcf18931d46059501f308b2becacc76507d9e21d",9"stateRoot": "0x9e01ca830150984baabddebd3abe1dab3fa3d6c882c30cdc5d0c290e7944c863",10"transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",11"receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",12"withdrawalsRoot": "0x19093be58925dde9b389d169c1df9b04b4790e2ed46482487c6d29d21305e205",13"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",14"difficulty": "0x0",15"number": "0xcec",16"gasLimit": "0x1c9c380",17"gasUsed": "0x0",18"timestamp": "0x678e7b0a",19"mixHash": "0x012f43c43d7839813a1f627093fdd1dc059a3027136cf11cf6463d6df9329160",20"nonce": "0x0000000000000000",21"baseFeePerGas": "0x7",22"blobGasUsed": "0x0",23"excessBlobGas": "0x0",24"parentBeaconBlockRoot": "0xf75e4d5ede58a5de5fe43c7a1b85681c5b9840d0684b5cb5b322f1634119558f",25"extraData": "0xd983010e0b846765746889676f312e32322e3130856c696e7578",26"size": "0x288",27"uncles": [],28"transactions": [],29"withdrawals": [30{31"index": "0xffffffffffffffff",32"validatorIndex": "0xffffffffffffffff",33"address": "0x0000000000000000000000000000000000000000",34"amount": "0x0"35}36]37}38}