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
A block object, or null when no block was found:
- 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
- difficultystring
The integer of the difficulty for this block encoded as 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 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
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"baseFeePerGas": "0x7",6"blobGasUsed": "0x0",7"difficulty": "0x0",8"excessBlobGas": "0x0",9"extraData": "0xd983011008846765746889676f312e32342e3131856c696e7578",10"gasLimit": "0x3938700",11"gasUsed": "0x0",12"hash": "0x14b9a6e1fb50dd03fded6d11782062cc7a78fa03b0c91ab2efbfecca2419811b",13"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",14"miner": "0x79d7e19e88f5089cc31e925160a7252f287a51a7",15"mixHash": "0x5b18ad3759d6126b8f2d72e926bf14c80a3f14fed6245e1654b48fbad25cca0d",16"nonce": "0x0000000000000000",17"number": "0x76aefb",18"parentBeaconBlockRoot": "0xc64f18e7e8f9745cb31af06129828447b7d5ed86c47b11afd49dad9400793e4d",19"parentHash": "0x4f7919320debb6e2dac38b5a24590d67534386a9cad3e8c9f0ab8b3fbdc4733d",20"receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",21"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",22"size": "0x45c",23"stateRoot": "0xf26551ac15ee7388bb2e54b50cdc95dd519f0d25d09ec9c56caa4a2feb8bbe8c",24"timestamp": "0x69d02cfd",25"transactions": [],26"transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",27"uncles": [],28"withdrawals": [29{30"address": "0x7492933bb94f79df306feb86a4ed1927a0a51b31",31"amount": "0x14910",32"index": "0x230a43b",33"validatorIndex": "0x2"34},35{36"address": "0x7492933bb94f79df306feb86a4ed1927a0a51b31",37"amount": "0x11fee",38"index": "0x230a43c",39"validatorIndex": "0x3"40}41],42"withdrawalsRoot": "0x96f7f1a817c37c5a882da54e9753e6b6e81978be98641265968e56bbc5c591be"43}44}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"baseFeePerGas": "0x7",6"blobGasUsed": "0x0",7"difficulty": "0x0",8"excessBlobGas": "0x0",9"extraData": "0xd983011008846765746889676f312e32342e3131856c696e7578",10"gasLimit": "0x3938700",11"gasUsed": "0x0",12"hash": "0x14b9a6e1fb50dd03fded6d11782062cc7a78fa03b0c91ab2efbfecca2419811b",13"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",14"miner": "0x79d7e19e88f5089cc31e925160a7252f287a51a7",15"mixHash": "0x5b18ad3759d6126b8f2d72e926bf14c80a3f14fed6245e1654b48fbad25cca0d",16"nonce": "0x0000000000000000",17"number": "0x76aefb",18"parentBeaconBlockRoot": "0xc64f18e7e8f9745cb31af06129828447b7d5ed86c47b11afd49dad9400793e4d",19"parentHash": "0x4f7919320debb6e2dac38b5a24590d67534386a9cad3e8c9f0ab8b3fbdc4733d",20"receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",21"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",22"size": "0x45c",23"stateRoot": "0xf26551ac15ee7388bb2e54b50cdc95dd519f0d25d09ec9c56caa4a2feb8bbe8c",24"timestamp": "0x69d02cfd",25"transactions": [],26"transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",27"uncles": [],28"withdrawals": [29{30"address": "0x7492933bb94f79df306feb86a4ed1927a0a51b31",31"amount": "0x14910",32"index": "0x230a43b",33"validatorIndex": "0x2"34},35{36"address": "0x7492933bb94f79df306feb86a4ed1927a0a51b31",37"amount": "0x11fee",38"index": "0x230a43c",39"validatorIndex": "0x3"40}41],42"withdrawalsRoot": "0x96f7f1a817c37c5a882da54e9753e6b6e81978be98641265968e56bbc5c591be"43}44}