Parameters
- blockNumber/tagstringREQUIRED
The block number in hexadecimal format or the string latest, earliest, pending, safe or finalized
- transaction detail flagbooleanREQUIRED
(default: false) The method returns the full transaction objects when this value is true otherwise, it returns only the hashes of the transactions
Returns
- objectobject
The block object containing metadata, state roots, and transaction references. Null if the block is not found or still pending
- baseFeePerGasstring
The base fee per gas set by the network for this block encoded as a hexadecimal string
- blobGasUsedstring
The total blob gas used by all blob-carrying transactions in this block encoded as a hexadecimal string
- difficultystring
The block difficulty as a hexadecimal string, 0x0 on proof-of-stake networks
- excessBlobGasstring
The excess blob gas carried over from the previous block encoded as a hexadecimal string
- extraDatastring
The extra data field set by the block proposer encoded as a hex string
- gasLimitstring
The maximum gas allowed in this block encoded as a hexadecimal string
- gasUsedstring
The total gas used by all transactions in this block encoded as a hexadecimal string
- hashstring
The hash of the block, null if the block is pending
- logsBloomstring
The bloom filter for logs generated in this block, null if pending
- minerstring
The address of the block proposer or beneficiary of block rewards
- mixHashstring
The 256-bit hash used for validating proof-of-work, typically zeroed on proof-of-stake networks
- noncestring
The block nonce value used in proof-of-work, zeroed or null on proof-of-stake networks
- numberstring
The block number encoded as a hexadecimal string, null if pending
- parentBeaconBlockRootstring
The root of the corresponding beacon block that this block is built on
- parentHashstring
The hash of the parent block
- receiptsRootstring
The root hash of the receipts trie of this block
- requestsHashstring
The hash of requests included in this block, used by some L2 or EIP-4844 implementations
- sha3Unclesstring
The SHA3 of the uncles list in this block
- sizestring
The block size in bytes encoded as a hexadecimal string
- stateRootstring
The root hash of the final state trie after all transactions in this block
- timestampstring
The unix timestamp when the block was produced encoded as a hexadecimal string
- transactionsarray
The array of transaction hashes included in this block
- transactionsRootstring
The root hash of the transaction trie of this block
- unclesarray
The array of uncle block hashes referenced by this block
- withdrawalsarray
The array of withdrawal operations included in this block, applicable to post-Shanghai blocks
- indexstring
Withdrawal index encoded as a hexadecimal string
- validatorIndexstring
Validator index encoded as a hexadecimal string
- addressstring
Recipient address for the withdrawal
- amountstring
Amount withdrawn in gwei encoded as a hexadecimal string
- withdrawalsRootstring
The root hash of the withdrawals trie of this block
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"hash": "0x03237b3946839e05dd1acc6fe9ff486ffb89ba89d5955e829cccc431a1a1180f",6"parentHash": "0x26fa77b1149ded6fb0100ca8fcb75ee8e101bb451c9d74fcd5da97ea1c56871c",7"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",8"miner": "0xa693cc18aa09d33dd388013b7a02e5ff863b8760",9"stateRoot": "0x375ea5b3f76ed886883266d957aaf7db2545e4e0bb6e6978890c4b05c687c132",10"transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",11"receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",12"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",13"difficulty": "0x0",14"number": "0x48b041",15"gasLimit": "0x2255100",16"gasUsed": "0x0",17"timestamp": "0x68e670e1",18"extraData": "0x",19"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",20"nonce": "0x0000000000000000",21"baseFeePerGas": "0x7",22"withdrawalsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",23"blobGasUsed": "0x0",24"excessBlobGas": "0x0",25"parentBeaconBlockRoot": "0x26fa77b1149ded6fb0100ca8fcb75ee8e101bb451c9d74fcd5da97ea1c56871c",26"requestsHash": "0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",27"size": "0x267",28"uncles": [],29"transactions": [],30"withdrawals": []31}32}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"hash": "0x03237b3946839e05dd1acc6fe9ff486ffb89ba89d5955e829cccc431a1a1180f",6"parentHash": "0x26fa77b1149ded6fb0100ca8fcb75ee8e101bb451c9d74fcd5da97ea1c56871c",7"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",8"miner": "0xa693cc18aa09d33dd388013b7a02e5ff863b8760",9"stateRoot": "0x375ea5b3f76ed886883266d957aaf7db2545e4e0bb6e6978890c4b05c687c132",10"transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",11"receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",12"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",13"difficulty": "0x0",14"number": "0x48b041",15"gasLimit": "0x2255100",16"gasUsed": "0x0",17"timestamp": "0x68e670e1",18"extraData": "0x",19"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",20"nonce": "0x0000000000000000",21"baseFeePerGas": "0x7",22"withdrawalsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",23"blobGasUsed": "0x0",24"excessBlobGas": "0x0",25"parentBeaconBlockRoot": "0x26fa77b1149ded6fb0100ca8fcb75ee8e101bb451c9d74fcd5da97ea1c56871c",26"requestsHash": "0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",27"size": "0x267",28"uncles": [],29"transactions": [],30"withdrawals": []31}32}