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
Base fee per gas in this block, encoded as hexadecimal
- blobGasUsedstring
Total blob gas used in the block, encoded as hexadecimal
- difficultystring
The integer of the difficulty for this block encoded as a hexadecimal
- excessBlobGasstring
Excess blob gas carried over from the previous 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
- parentBeaconBlockRootstring
Root of the corresponding beacon block in the consensus layer
- parentHashstring
The hash of the parent block
- receiptsRootstring
The root of the receipts trie of the block
- requestsHashstring
The hash of the requests made in this block, if applicable
- 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 or hashes included in the block
- transactionsRootstring
The root of the transaction trie of the block
- unclesarray
An array of uncle hashes
- withdrawalsarray
Array of withdrawal operations included in the block
- addressstring
Address to which the withdrawal is made
- amountstring
Amount withdrawn in Gwei, encoded as hexadecimal
- indexstring
Withdrawal index, encoded as hexadecimal
- validatorIndexstring
Index of the validator making the withdrawal, encoded as hexadecimal
- withdrawalsRootstring
The root of the withdrawals in the block
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"baseFeePerGas": "0x7",6"blobGasUsed": "0x0",7"difficulty": "0x0",8"excessBlobGas": "0x0",9"extraData": "0xd883010f0b846765746888676f312e32332e35856c696e7578",10"gasLimit": "0x2255100",11"gasUsed": "0x5208",12"hash": "0xcb8c95bbdccb761b0d278606bcb2888d0a767970efe6d3d9b9e6f392b1a95c22",13"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",14"miner": "0x711b0ecb072c27de0e50c9944d7195a51b202522",15"mixHash": "0x193f932a17584c14c5f0daac0f071f18caa21b194b7f639c2f846a70f8332f62",16"nonce": "0x0000000000000000",17"number": "0x654740",18"parentBeaconBlockRoot": "0x8b52c2901f99f959715f3aadac0882bfb557be924ba053d940767cf73bf976cd",19"parentHash": "0xfc3e946c373b26c989eaced8809419ce59c5b8d0337460240c415e7c24da0afb",20"receiptsRoot": "0xf78dfb743fbd92ade140711c8bbc542b5e307f0ab7984eff35d751969fe57efa",21"requestsHash": "0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",22"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",23"size": "0x384",24"stateRoot": "0xf35574a3535bd438f6e71a22c042526e3fa29b8985d166f04612e97c8b41b2dd",25"timestamp": "0x68d3eecd",26"transactions": [27"0x8020aa8c98247ca51ac752c66232604c965286d77cf14f40ab382393d8e43d50"28],29"transactionsRoot": "0x50d804d8a220044032a619d540672ac900272176c72cc97e2406e3f6f2466ba5",30"uncles": [],31"withdrawals": [32{33"index": "0xffffffffffffffff",34"validatorIndex": "0xffffffffffffffff",35"address": "0x712a30816a8756c8fdb78de63db55aa70d3cf3b4",36"amount": "0x3c710450"37},38{39"index": "0xffffffffffffffff",40"validatorIndex": "0xffffffffffffffff",41"address": "0x0000000000000000000000000000000000000000",42"amount": "0x0"43},44{45"index": "0xffffffffffffffff",46"validatorIndex": "0xffffffffffffffff",47"address": "0x711b0ecb072c27de0e50c9944d7195a51b202522",48"amount": "0x78e208a"49}50],51"withdrawalsRoot": "0xd8147769a8dd767b7a29dfde17cd71a063a4f0a9d355a115bb9c6ffc8aa82610"52}53}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"baseFeePerGas": "0x7",6"blobGasUsed": "0x0",7"difficulty": "0x0",8"excessBlobGas": "0x0",9"extraData": "0xd883010f0b846765746888676f312e32332e35856c696e7578",10"gasLimit": "0x2255100",11"gasUsed": "0x5208",12"hash": "0xcb8c95bbdccb761b0d278606bcb2888d0a767970efe6d3d9b9e6f392b1a95c22",13"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",14"miner": "0x711b0ecb072c27de0e50c9944d7195a51b202522",15"mixHash": "0x193f932a17584c14c5f0daac0f071f18caa21b194b7f639c2f846a70f8332f62",16"nonce": "0x0000000000000000",17"number": "0x654740",18"parentBeaconBlockRoot": "0x8b52c2901f99f959715f3aadac0882bfb557be924ba053d940767cf73bf976cd",19"parentHash": "0xfc3e946c373b26c989eaced8809419ce59c5b8d0337460240c415e7c24da0afb",20"receiptsRoot": "0xf78dfb743fbd92ade140711c8bbc542b5e307f0ab7984eff35d751969fe57efa",21"requestsHash": "0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",22"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",23"size": "0x384",24"stateRoot": "0xf35574a3535bd438f6e71a22c042526e3fa29b8985d166f04612e97c8b41b2dd",25"timestamp": "0x68d3eecd",26"transactions": [27"0x8020aa8c98247ca51ac752c66232604c965286d77cf14f40ab382393d8e43d50"28],29"transactionsRoot": "0x50d804d8a220044032a619d540672ac900272176c72cc97e2406e3f6f2466ba5",30"uncles": [],31"withdrawals": [32{33"index": "0xffffffffffffffff",34"validatorIndex": "0xffffffffffffffff",35"address": "0x712a30816a8756c8fdb78de63db55aa70d3cf3b4",36"amount": "0x3c710450"37},38{39"index": "0xffffffffffffffff",40"validatorIndex": "0xffffffffffffffff",41"address": "0x0000000000000000000000000000000000000000",42"amount": "0x0"43},44{45"index": "0xffffffffffffffff",46"validatorIndex": "0xffffffffffffffff",47"address": "0x711b0ecb072c27de0e50c9944d7195a51b202522",48"amount": "0x78e208a"49}50],51"withdrawalsRoot": "0xd8147769a8dd767b7a29dfde17cd71a063a4f0a9d355a115bb9c6ffc8aa82610"52}53}