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 | null
A block object, or null when no block was found
- baseFeePerGasstring
(Optional) 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
- blobGasUsedstring
(Optional) The amount of gas used by the blob
- difficultystring
The integer of the difficulty for this block encoded as a hexadecimal
- excessBlobGasstring
(Optional) The excess gas used by the blob
- 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 | null
The block hash of the requested block. null if pending
- logsBloomstring | null
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
- requestsHashstring
The hash of the requests list for this block
- mixHashstring
A string of a 256-bit hash encoded as a hexadecimal
- noncestring | null
The hash of the generated proof-of-work. null if pending
- numberstring | null
The block number of the requested block encoded as a hexadecimal. null if pending
- parentBeaconBlockRootstring
(Optional) The root of the parent beacon block in hexadecimal format
- 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
- transactionsRootstring
The root of the transaction trie of the block
- unclesarray
An array of uncle hashes
- withdrawalsarray
A withdrawals object contains 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
- 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
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"hash": "0xdc26988945b210a0789308ec242aebb29f030832dcd649a621f68595413ad017",6"parentHash": "0x05907e6d5d04e9842c7c6b757ede606bedcc39fd68a4838d2f3b0468226a33d8",7"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",8"miner": "0x000000000000000000000000000000000a11b004",9"stateRoot": "0x1b30fef6e5cb1bb3b6962a25d3486d5b555548838010ed4400d39faa796d3057",10"transactionsRoot": "0x7a0fb798a1ed1b41d5bd35802658db1d1dc89a9713caefc99ecad4da639f55c4",11"receiptsRoot": "0x9260a5ec2de04a2d54cb1ce95cb06f8de0f7a5e22c0f2d91adbd2c15a0636377",12"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",13"difficulty": "0x0",14"number": "0xb9981",15"gasLimit": "0x2255100",16"gasUsed": "0x2e671",17"timestamp": "0x68c4328a",18"extraData": "0x726574682f76312e362e302f6c696e7578",19"mixHash": "0x36ddade5198ca8031793daf4353ad1e575589e32bb92edd06b6ddb204f6f4688",20"nonce": "0x0000000000000000",21"baseFeePerGas": "0x7",22"withdrawalsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",23"blobGasUsed": "0x0",24"excessBlobGas": "0x0",25"parentBeaconBlockRoot": "0xc727b69d700192039405d21d0a67165bc20879b4fe356ab494473dfa9701be6e",26"requestsHash": "0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",27"size": "0x86d",28"uncles": [],29"transactions": [30"0x555c2192f6ef063ccedf606948c7f5fe371d5d04d2f22a55c8fbf7ad2e67fee1",31"0x3f21e4564ee6829850aed5fa2d0b881e45a9af243ac703449cf663c50b190721",32"0xc591a64ae2aec8187443bb3c88c884149d80ca2c0af897b5c2a38be80c921cc6",33"0xf5785fa4583b321fe7eeca032b91c7ac620190afcf6f7a631568a96b4356b171",34"0x6edffee40d0ef57e976098a8891c69091f82b2e2a79da63e3e2c425f02a7ccd0"35],36"withdrawals": []37}38}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"hash": "0xdc26988945b210a0789308ec242aebb29f030832dcd649a621f68595413ad017",6"parentHash": "0x05907e6d5d04e9842c7c6b757ede606bedcc39fd68a4838d2f3b0468226a33d8",7"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",8"miner": "0x000000000000000000000000000000000a11b004",9"stateRoot": "0x1b30fef6e5cb1bb3b6962a25d3486d5b555548838010ed4400d39faa796d3057",10"transactionsRoot": "0x7a0fb798a1ed1b41d5bd35802658db1d1dc89a9713caefc99ecad4da639f55c4",11"receiptsRoot": "0x9260a5ec2de04a2d54cb1ce95cb06f8de0f7a5e22c0f2d91adbd2c15a0636377",12"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",13"difficulty": "0x0",14"number": "0xb9981",15"gasLimit": "0x2255100",16"gasUsed": "0x2e671",17"timestamp": "0x68c4328a",18"extraData": "0x726574682f76312e362e302f6c696e7578",19"mixHash": "0x36ddade5198ca8031793daf4353ad1e575589e32bb92edd06b6ddb204f6f4688",20"nonce": "0x0000000000000000",21"baseFeePerGas": "0x7",22"withdrawalsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",23"blobGasUsed": "0x0",24"excessBlobGas": "0x0",25"parentBeaconBlockRoot": "0xc727b69d700192039405d21d0a67165bc20879b4fe356ab494473dfa9701be6e",26"requestsHash": "0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",27"size": "0x86d",28"uncles": [],29"transactions": [30"0x555c2192f6ef063ccedf606948c7f5fe371d5d04d2f22a55c8fbf7ad2e67fee1",31"0x3f21e4564ee6829850aed5fa2d0b881e45a9af243ac703449cf663c50b190721",32"0xc591a64ae2aec8187443bb3c88c884149d80ca2c0af897b5c2a38be80c921cc6",33"0xf5785fa4583b321fe7eeca032b91c7ac620190afcf6f7a631568a96b4356b171",34"0x6edffee40d0ef57e976098a8891c69091f82b2e2a79da63e3e2c425f02a7ccd0"35],36"withdrawals": []37}38}