Parameters
- hashstringREQUIRED
The hash (32 bytes) of the block
- transaction detail flagbooleanREQUIRED
(default: false) It returns the full transaction objects when it 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
The amount of gas used by the blob
- difficultystring
The integer of the difficulty for this block encoded as a hexadecimal
- excessBlobGasstring
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
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
(Optional) Withdrawal objects for this block (EIP-4895). Omitted on pre-Shanghai blocks.
- 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
(Optional) Merkle root of withdrawal data (EIP-4895). Omitted on pre-Shanghai blocks.
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": "0x1a7bc",12"hash": "0xf8b34d388254c6ff9a3bb178ec5f89dcda13b078ba3b02dcf96c699db560f9b7",13"logsBloom": "0x00000000000000000000000000000000000100000000000000000000000000010000020000000000000000000000000000000000000000000200000000200000000000000000000000000000000010000000000000000000000000000000000000000004000000000000040000000000000000000000000000000000000000000800000000000000000000000000000000002000000000000000000000000000020002000000000000000000000000040000000000000000000010000000000000000000000000000000001000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000040080000",14"miner": "0x4200000000000000000000000000000000000011",15"mixHash": "0x71627e5b2450c05169e2b361175a256755d064abac259358a3694e2301971c72",16"nonce": "0x0000000000000000",17"number": "0x1bed05",18"parentBeaconBlockRoot": "0x078c5384debb3583bb5007682891ada8e0bb91f3eb222dde932a42ca2a1693d8",19"parentHash": "0xc7c52a2e5275ae7caeb09f6381672f4300c15219a5c83109eecd018963ca8a39",20"receiptsRoot": "0xad73b47579739ca0ffae3a7aa99e6a935ed86e25087e94caf23ecbf03ad525b1",21"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",22"size": "0x48c",23"stateRoot": "0x08c736d6c221e4d9de38dffefb1d76113c6269e5b4915a70d30df0c6b5bd6899",24"timestamp": "0x682dbf13",25"transactions": [26"0x00a0a7500a26ef0191512b140fc76380c4c7b3bb7bd9f46f84e742c4fa8a2fb4",27"0xdcfc7cf9494b4d8666f8c6b01300c23c4eafc1dac6ccf2a04d97d07db545b825",28"0xeb6c3e5bf35a4de79033dd95f3a0373068dd3b429022e151fa41c0501f7dfc00"29],30"transactionsRoot": "0x947e95c6a48db1fc3a403bdae16571d731723ace3e956d631b24bfe92266d636",31"uncles": [],32"withdrawals": [],33"withdrawalsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"34}35}
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": "0x1a7bc",12"hash": "0xf8b34d388254c6ff9a3bb178ec5f89dcda13b078ba3b02dcf96c699db560f9b7",13"logsBloom": "0x00000000000000000000000000000000000100000000000000000000000000010000020000000000000000000000000000000000000000000200000000200000000000000000000000000000000010000000000000000000000000000000000000000004000000000000040000000000000000000000000000000000000000000800000000000000000000000000000000002000000000000000000000000000020002000000000000000000000000040000000000000000000010000000000000000000000000000000001000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000040080000",14"miner": "0x4200000000000000000000000000000000000011",15"mixHash": "0x71627e5b2450c05169e2b361175a256755d064abac259358a3694e2301971c72",16"nonce": "0x0000000000000000",17"number": "0x1bed05",18"parentBeaconBlockRoot": "0x078c5384debb3583bb5007682891ada8e0bb91f3eb222dde932a42ca2a1693d8",19"parentHash": "0xc7c52a2e5275ae7caeb09f6381672f4300c15219a5c83109eecd018963ca8a39",20"receiptsRoot": "0xad73b47579739ca0ffae3a7aa99e6a935ed86e25087e94caf23ecbf03ad525b1",21"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",22"size": "0x48c",23"stateRoot": "0x08c736d6c221e4d9de38dffefb1d76113c6269e5b4915a70d30df0c6b5bd6899",24"timestamp": "0x682dbf13",25"transactions": [26"0x00a0a7500a26ef0191512b140fc76380c4c7b3bb7bd9f46f84e742c4fa8a2fb4",27"0xdcfc7cf9494b4d8666f8c6b01300c23c4eafc1dac6ccf2a04d97d07db545b825",28"0xeb6c3e5bf35a4de79033dd95f3a0373068dd3b429022e151fa41c0501f7dfc00"29],30"transactionsRoot": "0x947e95c6a48db1fc3a403bdae16571d731723ace3e956d631b24bfe92266d636",31"uncles": [],32"withdrawals": [],33"withdrawalsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"34}35}