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:
- baseFeePerGas
(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
- blobGasUsed
The amount of gas used by the blob
- difficulty
The integer of the difficulty for this block encoded as a hexadecimal
- excessBlobGas
The excess gas used by the blob
- extraData
The “extra data” field of this block
- gasLimit
The maximum gas allowed in this block encoded as a hexadecimal
- gasUsed
The total used gas by all transactions in this block encoded as a hexadecimal
- hash
The block hash of the requested block. null if pending
- logsBloom
The bloom filter for the logs of the block. null if pending
- miner
The address of the beneficiary to whom the mining rewards were given
- mixHash
A string of a 256-bit hash encoded as a hexadecimal
- nonce
The hash of the generated proof-of-work. null if pending
- number
The block number of the requested block encoded as a hexadecimal. null if pending
- parentBeaconBlockRoot
The root of the parent beacon block in hexadecimal format
- parentHash
The hash of the parent block
- receiptsRoot
The root of the receipts trie of the block
- sha3Uncles
The SHA3 of the uncles data in the block
- size
The size of this block in bytes as an Integer value encoded as hexadecimal
- stateRoot
The root of the final state trie of the block
- timestamp
The unix timestamp for when the block was collated
- transactions
An array of transaction objects
- transactionsRoot
The root of the transaction trie of the block
- uncles
An array of uncle hashes
- withdrawals
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
- index
The index of the withdrawal to uniquely identify each withdrawal
- validatorIndex
The index of the validator who initiated the withdrawal
- address
The address to which the withdrawn amount is sent
- amount
The amount of ether, provided in hexadecimal format, corresponding to a certain value in gwei
- withdrawalsRoot
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"baseFeePerGas": "0xfc",6"blobGasUsed": "0x0",7"difficulty": "0x0",8"excessBlobGas": "0x0",9"extraData": "0x",10"gasLimit": "0x1c9c380",11"gasUsed": "0xab66",12"hash": "0x14fcb43cea36af13795b19ef4ff8c8cf9de0150c4e7fe1288b85ba75e978f622",13"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",14"miner": "0x4200000000000000000000000000000000000011",15"mixHash": "0xbf2dc61942d78109adad0b5c89b2c1408a5d2c85112991c5441349399b2a8e5b",16"nonce": "0x0000000000000000",17"number": "0x3a09c",18"parentBeaconBlockRoot": "0x2370cf134796af51289f67aeba251a66cf5140f5485354242d132c6ac9f684f7",19"parentHash": "0x2e7ed0f65825e9288f4e480a079fbce3ad4d2e1acd995b3f7bd35d34f4950195",20"receiptsRoot": "0x87722a3c78c78cd7f8439fb71be64c4bb3e451ca404bffef90123e17eb0ff64a",21"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",22"size": "0x347",23"stateRoot": "0x20d32f9ac8303563d088f9b995e82f56c039d5a2bf3cbbd6bd3031907f6e89d7",24"timestamp": "0x67121fbc",25"transactions": [26"0x99610cbf06d10e78a65544106230ebce6821aa4b79da6e8b4836edaac2a72d5e"27],28"transactionsRoot": "0xfb71afb9a316c50858eb2c5b949d2ed5def67aeba1144c0f04494ece70d6c8c2",29"uncles": [],30"withdrawals": [],31"withdrawalsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"32}33}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"baseFeePerGas": "0xfc",6"blobGasUsed": "0x0",7"difficulty": "0x0",8"excessBlobGas": "0x0",9"extraData": "0x",10"gasLimit": "0x1c9c380",11"gasUsed": "0xab66",12"hash": "0x14fcb43cea36af13795b19ef4ff8c8cf9de0150c4e7fe1288b85ba75e978f622",13"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",14"miner": "0x4200000000000000000000000000000000000011",15"mixHash": "0xbf2dc61942d78109adad0b5c89b2c1408a5d2c85112991c5441349399b2a8e5b",16"nonce": "0x0000000000000000",17"number": "0x3a09c",18"parentBeaconBlockRoot": "0x2370cf134796af51289f67aeba251a66cf5140f5485354242d132c6ac9f684f7",19"parentHash": "0x2e7ed0f65825e9288f4e480a079fbce3ad4d2e1acd995b3f7bd35d34f4950195",20"receiptsRoot": "0x87722a3c78c78cd7f8439fb71be64c4bb3e451ca404bffef90123e17eb0ff64a",21"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",22"size": "0x347",23"stateRoot": "0x20d32f9ac8303563d088f9b995e82f56c039d5a2bf3cbbd6bd3031907f6e89d7",24"timestamp": "0x67121fbc",25"transactions": [26"0x99610cbf06d10e78a65544106230ebce6821aa4b79da6e8b4836edaac2a72d5e"27],28"transactionsRoot": "0xfb71afb9a316c50858eb2c5b949d2ed5def67aeba1144c0f04494ece70d6c8c2",29"uncles": [],30"withdrawals": [],31"withdrawalsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"32}33}