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:
- 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": "0x0",12"hash": "0x214c9f430bce77294ffd5a93fd39926975df4be0a544e6349fff324f4b034c8d",13"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",14"miner": "0x711b0ecb072c27de0e50c9944d7195a51b202522",15"mixHash": "0x60033149dfaa866aa2b5fc94c7de5ff1ce04d3d1b7341543ac61b54854318d07",16"nonce": "0x0000000000000000",17"number": "0xcedca",18"parentBeaconBlockRoot": "0xc061b44911db0ef01cd82af6ef22dbd19a147b5338c49b095bb3b1bdd296ca39",19"parentHash": "0x18a12035ef045d2019fc4e727469415ca6034a4500b830e9662d0d4ed347a9e1",20"receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",21"requestsHash": "0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",22"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",23"size": "0x304",24"stateRoot": "0x9feb619787e575c42166ca1ae265c2f45ae7d9bf100ff1566ec18f6334927802",25"timestamp": "0x68ae675e",26"transactions": [],27"transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",28"uncles": [],29"withdrawals": [30{31"index": "0xffffffffffffffff",32"validatorIndex": "0xffffffffffffffff",33"address": "0x81568b27b210538869f5659035ebf506d2fc3384",34"amount": "0x3c710450"35},36{37"index": "0xffffffffffffffff",38"validatorIndex": "0xffffffffffffffff",39"address": "0x0000000000000000000000000000000000000000",40"amount": "0x0"41},42{43"index": "0xffffffffffffffff",44"validatorIndex": "0xffffffffffffffff",45"address": "0x711b0ecb072c27de0e50c9944d7195a51b202522",46"amount": "0x78e208a"47}48],49"withdrawalsRoot": "0x49f8ae906c687acff4af3a06b1e46fc01a79d7e553846f0790d4a41bfa2c2a27"50}51}
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": "0x0",12"hash": "0x214c9f430bce77294ffd5a93fd39926975df4be0a544e6349fff324f4b034c8d",13"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",14"miner": "0x711b0ecb072c27de0e50c9944d7195a51b202522",15"mixHash": "0x60033149dfaa866aa2b5fc94c7de5ff1ce04d3d1b7341543ac61b54854318d07",16"nonce": "0x0000000000000000",17"number": "0xcedca",18"parentBeaconBlockRoot": "0xc061b44911db0ef01cd82af6ef22dbd19a147b5338c49b095bb3b1bdd296ca39",19"parentHash": "0x18a12035ef045d2019fc4e727469415ca6034a4500b830e9662d0d4ed347a9e1",20"receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",21"requestsHash": "0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",22"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",23"size": "0x304",24"stateRoot": "0x9feb619787e575c42166ca1ae265c2f45ae7d9bf100ff1566ec18f6334927802",25"timestamp": "0x68ae675e",26"transactions": [],27"transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",28"uncles": [],29"withdrawals": [30{31"index": "0xffffffffffffffff",32"validatorIndex": "0xffffffffffffffff",33"address": "0x81568b27b210538869f5659035ebf506d2fc3384",34"amount": "0x3c710450"35},36{37"index": "0xffffffffffffffff",38"validatorIndex": "0xffffffffffffffff",39"address": "0x0000000000000000000000000000000000000000",40"amount": "0x0"41},42{43"index": "0xffffffffffffffff",44"validatorIndex": "0xffffffffffffffff",45"address": "0x711b0ecb072c27de0e50c9944d7195a51b202522",46"amount": "0x78e208a"47}48],49"withdrawalsRoot": "0x49f8ae906c687acff4af3a06b1e46fc01a79d7e553846f0790d4a41bfa2c2a27"50}51}