Parameters
- blockNumber/tagstringREQUIRED
The block number in hexadecimal format or the string latest, earliest, pending, safe or finalized
- transaction detail flagbooleanREQUIRED
The method returns the full transaction objects when this value is true otherwise, it returns only the hashes of the transactions
Returns
- objectobject
A block object, or null when no block was found. The block object contains the following fields:
- 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
Amount of blob gas used in hexadecimal
- difficultystring
The integer of the difficulty for this block encoded as a hexadecimal
- excessBlobGasstring
Excess blob gas in hexadecimal
- 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
The block hash of the requested block. null if pending
- logsBloomstring
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
The hash of the generated proof-of-work. null if pending
- numberstring
The block number of the requested block encoded as hexadecimal. null if pending
- parentBeaconBlockRootstring
Parent beacon block root in hexadecimal
- parentHashstring
The hash of the parent block
- receiptsRootstring
The root of the receipts trie of the block
- requestsHashstring
The hash of the execution requests for this 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
Withdrawals trie root in hexadecimal
1{2"jsonrpc": "2.0",3"result": {4"baseFeePerGas": "0xfb",5"blobGasUsed": "0x0",6"difficulty": "0x0",7"excessBlobGas": "0x0",8"extraData": "0x00000000fa00000006",9"gasLimit": "0x3938700",10"gasUsed": "0xb41c",11"hash": "0x4472df1588f5ea5f6bc0d567e1bbff9759e9659ef856e8a0494b13ebd06b836d",12"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",13"miner": "0x4200000000000000000000000000000000000011",14"mixHash": "0x5ad5a99151df3428fbb0f19259fa26f628e1db349dc4b293d87c10eb76e5b85f",15"nonce": "0x0000000000000000",16"number": "0x5f4e6",17"parentBeaconBlockRoot": "0x74f6cdaefbbd9a9c5d6688b75dec4fabd9ab0a8787604a45dff9309bf9f72f5e",18"parentHash": "0x0911589079b94426ca539af87c2ce78a3ca1dcead603f4e0a58102ee74257545",19"receiptsRoot": "0xcc905f1b91214e7c37873dbdc639dc7e2dd0730cc89c43c4cf583dc34c41ff76",20"requestsHash": "0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",21"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",22"size": "0x380",23"stateRoot": "0xf5308c33846d16817881d09ec175ef45a20f438d8949794228ac744dd1af8e9a",24"timestamp": "0x6887e142",25"transactions": [26"0x79b524d4305dfa348d3525b9da01239fed53ad4d645f3bc136bfe3e2b39ef779"27],28"transactionsRoot": "0xef8a2a2a58b9e00665f58d8e60282f7403aba5bc901cb3b91c490144211a3f2b",29"uncles": [],30"withdrawals": [],31"withdrawalsRoot": "0x8ed4baae3a927be3dea54996b4d5899f8c01e7594bf50b17dc1e741388ce3d12"32},33"id": 134}
1{2"jsonrpc": "2.0",3"result": {4"baseFeePerGas": "0xfb",5"blobGasUsed": "0x0",6"difficulty": "0x0",7"excessBlobGas": "0x0",8"extraData": "0x00000000fa00000006",9"gasLimit": "0x3938700",10"gasUsed": "0xb41c",11"hash": "0x4472df1588f5ea5f6bc0d567e1bbff9759e9659ef856e8a0494b13ebd06b836d",12"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",13"miner": "0x4200000000000000000000000000000000000011",14"mixHash": "0x5ad5a99151df3428fbb0f19259fa26f628e1db349dc4b293d87c10eb76e5b85f",15"nonce": "0x0000000000000000",16"number": "0x5f4e6",17"parentBeaconBlockRoot": "0x74f6cdaefbbd9a9c5d6688b75dec4fabd9ab0a8787604a45dff9309bf9f72f5e",18"parentHash": "0x0911589079b94426ca539af87c2ce78a3ca1dcead603f4e0a58102ee74257545",19"receiptsRoot": "0xcc905f1b91214e7c37873dbdc639dc7e2dd0730cc89c43c4cf583dc34c41ff76",20"requestsHash": "0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",21"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",22"size": "0x380",23"stateRoot": "0xf5308c33846d16817881d09ec175ef45a20f438d8949794228ac744dd1af8e9a",24"timestamp": "0x6887e142",25"transactions": [26"0x79b524d4305dfa348d3525b9da01239fed53ad4d645f3bc136bfe3e2b39ef779"27],28"transactionsRoot": "0xef8a2a2a58b9e00665f58d8e60282f7403aba5bc901cb3b91c490144211a3f2b",29"uncles": [],30"withdrawals": [],31"withdrawalsRoot": "0x8ed4baae3a927be3dea54996b4d5899f8c01e7594bf50b17dc1e741388ce3d12"32},33"id": 134}