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 | 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
- 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
- totalDifficultystring
(Optional) The integer of the total difficulty of the chain until this block encoded as a hexadecimal
- 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
- requestsHashstring
(Optional) The hash of the requests in the block. Present after the Pectra upgrade
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"number": "0x1b15f53",6"hash": "0x0a4ead4cfe6de9e8518eb027db52fba482208a70d601a5ea59f4b89f4ecd1623",7"parentHash": "0x426a73aae9933fe96d612b745f85f8c98ee90c61493b77adfb66725bea38590c",8"nonce": "0x0000000000000000",9"mixHash": "0x9a1bacc220095d7b168bab3fafc6a981cb43311c7291f651f3f293553c72c7d1",10"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",11"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",12"stateRoot": "0xa74a939bf881799545537640b6e427061533ef1685529da2355de69cdec27b3e",13"miner": "0x4200000000000000000000000000000000000011",14"difficulty": "0x0",15"extraData": "0x0100000032000000060000000000000000",16"size": "0x38a",17"gasLimit": "0x7270e00",18"gasUsed": "0xb4de",19"timestamp": "0x69ce8d6e",20"transactionsRoot": "0x39c38fd5a7c3a958199f098295b5740b7503ce67d9232d33037d91a8c84c8035",21"receiptsRoot": "0x6fee85adbe09a59ea3f8f4d1cdef02672b017261e838cf22ac772092a707ae21",22"baseFeePerGas": "0x32",23"withdrawalsRoot": "0x83944f9f7ddaa78404316112fccdb616a8bc773b90ad4728b8bc33c584969897",24"blobGasUsed": "0x0",25"excessBlobGas": "0x0",26"parentBeaconBlockRoot": "0x03e80d95315dfbb6643019c4e81d49f80394db0e61b00f02aaf162a0da2b3fe4",27"requestsHash": "0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",28"uncles": [],29"transactions": [30{31"blockHash": "0x0a4ead4cfe6de9e8518eb027db52fba482208a70d601a5ea59f4b89f4ecd1623",32"blockNumber": "0x1b15f53",33"transactionIndex": "0x0",34"hash": "0x92743c4fad48b5a2d8e9f7743bf5ca6373d2226a518596aa522ad3c10abba56a",35"from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",36"to": "0x4200000000000000000000000000000000000015",37"input": "0x3db6be2b00000558000c5fc500000000000000080000000069ce8d2700000000017a4f23000000000000000000000000000000000000000000000000000000000c7ba4080000000000000000000000000000000000000000000000000000000000b60a39e98cd37b62cc5287580404ef0e9af5a1283cd7e4ff0c924ace3716dc74c6bb4c0000000000000000000000001ffda89c755f6d4af069897d77ccabb580fd412a000000000000013aa2d138370190",38"nonce": "0x1b15f54",39"value": "0x0",40"gas": "0xf4240",41"gasPrice": "0x0",42"chainId": "0xb67d2",43"type": "0x7e",44"v": "0x0",45"r": "0x0",46"s": "0x0",47"mint": "0x0",48"sourceHash": "0x36a6c7f917895f642bf42d7220bb9729a996fccaac9b005ad80fde247800df7d",49"depositReceiptVersion": "0x1"50}51],52"withdrawals": []53}54}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"number": "0x1b15f53",6"hash": "0x0a4ead4cfe6de9e8518eb027db52fba482208a70d601a5ea59f4b89f4ecd1623",7"parentHash": "0x426a73aae9933fe96d612b745f85f8c98ee90c61493b77adfb66725bea38590c",8"nonce": "0x0000000000000000",9"mixHash": "0x9a1bacc220095d7b168bab3fafc6a981cb43311c7291f651f3f293553c72c7d1",10"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",11"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",12"stateRoot": "0xa74a939bf881799545537640b6e427061533ef1685529da2355de69cdec27b3e",13"miner": "0x4200000000000000000000000000000000000011",14"difficulty": "0x0",15"extraData": "0x0100000032000000060000000000000000",16"size": "0x38a",17"gasLimit": "0x7270e00",18"gasUsed": "0xb4de",19"timestamp": "0x69ce8d6e",20"transactionsRoot": "0x39c38fd5a7c3a958199f098295b5740b7503ce67d9232d33037d91a8c84c8035",21"receiptsRoot": "0x6fee85adbe09a59ea3f8f4d1cdef02672b017261e838cf22ac772092a707ae21",22"baseFeePerGas": "0x32",23"withdrawalsRoot": "0x83944f9f7ddaa78404316112fccdb616a8bc773b90ad4728b8bc33c584969897",24"blobGasUsed": "0x0",25"excessBlobGas": "0x0",26"parentBeaconBlockRoot": "0x03e80d95315dfbb6643019c4e81d49f80394db0e61b00f02aaf162a0da2b3fe4",27"requestsHash": "0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",28"uncles": [],29"transactions": [30{31"blockHash": "0x0a4ead4cfe6de9e8518eb027db52fba482208a70d601a5ea59f4b89f4ecd1623",32"blockNumber": "0x1b15f53",33"transactionIndex": "0x0",34"hash": "0x92743c4fad48b5a2d8e9f7743bf5ca6373d2226a518596aa522ad3c10abba56a",35"from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",36"to": "0x4200000000000000000000000000000000000015",37"input": "0x3db6be2b00000558000c5fc500000000000000080000000069ce8d2700000000017a4f23000000000000000000000000000000000000000000000000000000000c7ba4080000000000000000000000000000000000000000000000000000000000b60a39e98cd37b62cc5287580404ef0e9af5a1283cd7e4ff0c924ace3716dc74c6bb4c0000000000000000000000001ffda89c755f6d4af069897d77ccabb580fd412a000000000000013aa2d138370190",38"nonce": "0x1b15f54",39"value": "0x0",40"gas": "0xf4240",41"gasPrice": "0x0",42"chainId": "0xb67d2",43"type": "0x7e",44"v": "0x0",45"r": "0x0",46"s": "0x0",47"mint": "0x0",48"sourceHash": "0x36a6c7f917895f642bf42d7220bb9729a996fccaac9b005ad80fde247800df7d",49"depositReceiptVersion": "0x1"50}51],52"withdrawals": []53}54}