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 | 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": "0x1b17351",6"hash": "0xa6ad7f37f2a64d50d6062387abb980290cab2e2b848c09fd64695d44a84256be",7"parentHash": "0x3c67620bda581474bd15ace74e07bdd5674615688a5b944e350d4a9de5572c67",8"nonce": "0x0000000000000000",9"mixHash": "0x2f5472d5a2a2c5454d462e298bb96a16e78a6f91251da7017481753ef102a589",10"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",11"logsBloom": "0x00000000000000000008100000000008000040000000000000000000000200000000000000000000128100000000000000000000000000000400000000000000000100000000000000000008000000000000000000020000000000000000000000000000000000000000000000000000000000000800000000000010000000000000000008000000000080000000000000000000000000000100002000200000000000002000000000000000000000000000400001000000000000000000000000000002000104400000080000000000000000100000400000200000000800000000000000000000040001000000000000000008000000000000000000000800",12"stateRoot": "0xacf680d8f86bb986439ab5c115108c39584e0552fbce6adc14dde27acf7a006d",13"miner": "0x4200000000000000000000000000000000000011",14"difficulty": "0x0",15"extraData": "0x0100000032000000060000000000000000",16"size": "0x4c8",17"gasLimit": "0x7270e00",18"gasUsed": "0x336c2",19"timestamp": "0x69cea16c",20"transactionsRoot": "0xbd61b690cf2c1d0a540e1ee14b136ff9b03e57d885782c4a43e70ff4731a5073",21"receiptsRoot": "0x5e1b0366bef96cce9e48ca408f5f0958a3d22727429b1afe7bc12edec4ded8d0",22"baseFeePerGas": "0x32",23"withdrawalsRoot": "0x83944f9f7ddaa78404316112fccdb616a8bc773b90ad4728b8bc33c584969897",24"blobGasUsed": "0x9c40",25"excessBlobGas": "0x0",26"parentBeaconBlockRoot": "0xfde8d2747097938f4f5c2c5fd07babd864eecae0380063a1744e0cf0e5bc0f55",27"requestsHash": "0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",28"uncles": [],29"transactions": [30{31"blockHash": "0xa6ad7f37f2a64d50d6062387abb980290cab2e2b848c09fd64695d44a84256be",32"blockNumber": "0x1b17351",33"transactionIndex": "0x0",34"hash": "0xbb6ca57b4e8ee543de9a5133958f6642c152ea74dd61f1126757d0245da2d2c9",35"from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",36"to": "0x4200000000000000000000000000000000000015",37"input": "0x3db6be2b00000558000c5fc500000000000000080000000069cea12b00000000017a50cc000000000000000000000000000000000000000000000000000000000785023b0000000000000000000000000000000000000000000000000000000000617e31921549b01ed0e56c3e853408bd460efa22f7adb78b68390428a84ca8353bfa680000000000000000000000001ffda89c755f6d4af069897d77ccabb580fd412a000000000000013aa2d138370190",38"nonce": "0x1b17352",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": "0x7560316ebff9bdd169da98c3dde9faae0e2c50a3cf86d165b7a877a21d8f1bb7",49"depositReceiptVersion": "0x1"50},51{52"blockHash": "0xa6ad7f37f2a64d50d6062387abb980290cab2e2b848c09fd64695d44a84256be",53"blockNumber": "0x1b17351",54"transactionIndex": "0x1",55"hash": "0xceed206628f156eaabcdf479c45b2a3a53d5c9c5a23f18f8f1b783f5b0dc6dd9",56"from": "0x5be1d90a9e0ebac6ea878a938b27b1a761e7118e",57"to": "0x2659c6085d26144117d904c46b48b6d180393d27",58"input": "0x219f5d17000000000000000000000000000000000000000000000000000000000003fe22000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001a5c1340c88a51a3c9000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000069cea170",59"nonce": "0xa8f",60"value": "0x0",61"gas": "0x7a120",62"gasPrice": "0x9896b2",63"maxPriorityFeePerGas": "0x989680",64"maxFeePerGas": "0x3c336080",65"accessList": [],66"chainId": "0xb67d2",67"type": "0x2",68"v": "0x1",69"r": "0x8e765cbcada90e1d6783b12e10791e0843d03cdaef5f8026843c43c2e87c8041",70"s": "0x678787a40f2626055c8dcd6312bd34ff7e87f4f092dba1e061cabb491488547c",71"mint": "0x0",72"yParity": "0x1"73}74],75"withdrawals": []76}77}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"number": "0x1b17351",6"hash": "0xa6ad7f37f2a64d50d6062387abb980290cab2e2b848c09fd64695d44a84256be",7"parentHash": "0x3c67620bda581474bd15ace74e07bdd5674615688a5b944e350d4a9de5572c67",8"nonce": "0x0000000000000000",9"mixHash": "0x2f5472d5a2a2c5454d462e298bb96a16e78a6f91251da7017481753ef102a589",10"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",11"logsBloom": "0x00000000000000000008100000000008000040000000000000000000000200000000000000000000128100000000000000000000000000000400000000000000000100000000000000000008000000000000000000020000000000000000000000000000000000000000000000000000000000000800000000000010000000000000000008000000000080000000000000000000000000000100002000200000000000002000000000000000000000000000400001000000000000000000000000000002000104400000080000000000000000100000400000200000000800000000000000000000040001000000000000000008000000000000000000000800",12"stateRoot": "0xacf680d8f86bb986439ab5c115108c39584e0552fbce6adc14dde27acf7a006d",13"miner": "0x4200000000000000000000000000000000000011",14"difficulty": "0x0",15"extraData": "0x0100000032000000060000000000000000",16"size": "0x4c8",17"gasLimit": "0x7270e00",18"gasUsed": "0x336c2",19"timestamp": "0x69cea16c",20"transactionsRoot": "0xbd61b690cf2c1d0a540e1ee14b136ff9b03e57d885782c4a43e70ff4731a5073",21"receiptsRoot": "0x5e1b0366bef96cce9e48ca408f5f0958a3d22727429b1afe7bc12edec4ded8d0",22"baseFeePerGas": "0x32",23"withdrawalsRoot": "0x83944f9f7ddaa78404316112fccdb616a8bc773b90ad4728b8bc33c584969897",24"blobGasUsed": "0x9c40",25"excessBlobGas": "0x0",26"parentBeaconBlockRoot": "0xfde8d2747097938f4f5c2c5fd07babd864eecae0380063a1744e0cf0e5bc0f55",27"requestsHash": "0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",28"uncles": [],29"transactions": [30{31"blockHash": "0xa6ad7f37f2a64d50d6062387abb980290cab2e2b848c09fd64695d44a84256be",32"blockNumber": "0x1b17351",33"transactionIndex": "0x0",34"hash": "0xbb6ca57b4e8ee543de9a5133958f6642c152ea74dd61f1126757d0245da2d2c9",35"from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",36"to": "0x4200000000000000000000000000000000000015",37"input": "0x3db6be2b00000558000c5fc500000000000000080000000069cea12b00000000017a50cc000000000000000000000000000000000000000000000000000000000785023b0000000000000000000000000000000000000000000000000000000000617e31921549b01ed0e56c3e853408bd460efa22f7adb78b68390428a84ca8353bfa680000000000000000000000001ffda89c755f6d4af069897d77ccabb580fd412a000000000000013aa2d138370190",38"nonce": "0x1b17352",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": "0x7560316ebff9bdd169da98c3dde9faae0e2c50a3cf86d165b7a877a21d8f1bb7",49"depositReceiptVersion": "0x1"50},51{52"blockHash": "0xa6ad7f37f2a64d50d6062387abb980290cab2e2b848c09fd64695d44a84256be",53"blockNumber": "0x1b17351",54"transactionIndex": "0x1",55"hash": "0xceed206628f156eaabcdf479c45b2a3a53d5c9c5a23f18f8f1b783f5b0dc6dd9",56"from": "0x5be1d90a9e0ebac6ea878a938b27b1a761e7118e",57"to": "0x2659c6085d26144117d904c46b48b6d180393d27",58"input": "0x219f5d17000000000000000000000000000000000000000000000000000000000003fe22000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001a5c1340c88a51a3c9000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000069cea170",59"nonce": "0xa8f",60"value": "0x0",61"gas": "0x7a120",62"gasPrice": "0x9896b2",63"maxPriorityFeePerGas": "0x989680",64"maxFeePerGas": "0x3c336080",65"accessList": [],66"chainId": "0xb67d2",67"type": "0x2",68"v": "0x1",69"r": "0x8e765cbcada90e1d6783b12e10791e0843d03cdaef5f8026843c43c2e87c8041",70"s": "0x678787a40f2626055c8dcd6312bd34ff7e87f4f092dba1e061cabb491488547c",71"mint": "0x0",72"yParity": "0x1"73}74],75"withdrawals": []76}77}