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:
- hashstring
The block hash of the requested block. null if pending
- parentHashstring
The hash of the parent block
- sha3Unclesstring
The SHA3 of the uncles data in the block
- minerstring
The address of the beneficiary to whom the mining rewards were given
- stateRootstring
The root of the final state trie of the block
- transactionsRootstring
The root of the transaction trie of the block
- receiptsRootstring
The root of the receipts trie of the block
- logsBloomstring
The bloom filter for the logs of the block. null if pending
- difficultystring
The integer of the difficulty for this block encoded as hexadecimal
- numberstring
The block number of the requested block encoded as a hexadecimal. null if pending
- 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
- timestampstring
The unix timestamp for when the block was collated
- extraDatastring
The “extra data” field of this block
- mixHashstring
A string of a 256-bit hash encoded as a hexadecimal
- noncestring
The hash of the generated proof-of-work. null if pending
- baseFeePerGasstring
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
- 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
- blobGasUsedstring
The amount of gas used by the blob
- excessBlobGasstring
The excess gas used by the blob
- parentBeaconBlockRootstring
The hash of the parent beacon block's root
- requestsHashstring
The hash of the requests in the block (e.g., for rollups like Optimism)
- sizestring
The size of this block in bytes as an Integer value encoded as hexadecimal
- unclesarray
An array of uncle hashes
- transactionsarray
An array of transaction objects - please see eth_getTransactionByHash for exact shape
- withdrawalsarray
A withdrawals array containing 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
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"hash": "0x44905d43d8fb5767e4bfba697ae0b6948efce6b7ebbebb349a6bc53d6e76d75e",6"parentHash": "0x7dbb84852d14de45120745aa1efaf7505a84651272f4f29e9c4b818369bcfe12",7"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",8"miner": "0x0000000000000000000000000000000000520fee",9"stateRoot": "0xf2e4c7d6071979688ab6cb50864f243a81094446328566019b2c029f35e289eb",10"transactionsRoot": "0xf154b1d59cb3d2f78c35ad4be93e628b355640fe8535ba3d86e7b6e7ba19c1a4",11"receiptsRoot": "0x1d6a9a2d052cac93dc3037a3ab90859b0a4f72183535a00cfa0e0eb47aa8a79c",12"logsBloom": "0x00000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000200800000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000200080000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000400000000000000000000000000000000000000000000000000000020000000000000000400000",13"difficulty": "0x0",14"number": "0x247e80",15"gasLimit": "0x2faf080",16"gasUsed": "0x24935",17"timestamp": "0x69de1215",18"extraData": "0x726574682f76312e31312e312f6c696e7578",19"mixHash": "0xf394be00f631f124176afbfc46f7454ae26d5bc321705234543d6dcc1394c3de",20"nonce": "0x0000000000000000",21"baseFeePerGas": "0x7",22"withdrawalsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",23"blobGasUsed": "0x0",24"excessBlobGas": "0x0",25"parentBeaconBlockRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",26"requestsHash": "0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",27"size": "0x332",28"uncles": [],29"transactions": [30"0xe9e55413b4d0b2c1beab8cda113c7a2c25c9b1b2b24aba3a4b651f0943912e17"31],32"withdrawals": []33}34}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"hash": "0x44905d43d8fb5767e4bfba697ae0b6948efce6b7ebbebb349a6bc53d6e76d75e",6"parentHash": "0x7dbb84852d14de45120745aa1efaf7505a84651272f4f29e9c4b818369bcfe12",7"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",8"miner": "0x0000000000000000000000000000000000520fee",9"stateRoot": "0xf2e4c7d6071979688ab6cb50864f243a81094446328566019b2c029f35e289eb",10"transactionsRoot": "0xf154b1d59cb3d2f78c35ad4be93e628b355640fe8535ba3d86e7b6e7ba19c1a4",11"receiptsRoot": "0x1d6a9a2d052cac93dc3037a3ab90859b0a4f72183535a00cfa0e0eb47aa8a79c",12"logsBloom": "0x00000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000200800000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000200080000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000400000000000000000000000000000000000000000000000000000020000000000000000400000",13"difficulty": "0x0",14"number": "0x247e80",15"gasLimit": "0x2faf080",16"gasUsed": "0x24935",17"timestamp": "0x69de1215",18"extraData": "0x726574682f76312e31312e312f6c696e7578",19"mixHash": "0xf394be00f631f124176afbfc46f7454ae26d5bc321705234543d6dcc1394c3de",20"nonce": "0x0000000000000000",21"baseFeePerGas": "0x7",22"withdrawalsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",23"blobGasUsed": "0x0",24"excessBlobGas": "0x0",25"parentBeaconBlockRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",26"requestsHash": "0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",27"size": "0x332",28"uncles": [],29"transactions": [30"0xe9e55413b4d0b2c1beab8cda113c7a2c25c9b1b2b24aba3a4b651f0943912e17"31],32"withdrawals": []33}34}