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, not included for blocks before EIP-1559
- blobGasUsedstring
The total blob gas used by all transactions in the block encoded as a hexadecimal
- difficultystring
The integer of the difficulty for the block encoded as a hexadecimal
- excessBlobGasstring
The excess blob gas used in the block encoded as a hexadecimal
- extraDatastring
The extra data field of the block
- gasLimitstring
The maximum gas allowed in the block encoded as a hexadecimal
- gasUsedstring
The total used gas by all transactions in the 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
- miniBlockCountstring
The number of miniblocks in the block
- miniBlockOffsetstring
The miniblock offset value for the 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
The root of the parent beacon block of the block
- parentHashstring
The hash of the parent block
- receiptsRootstring
The root of the receipts trie of the block
- requestsHashstring
The hash of the requests list in the block encoded as a hexadecimal
- sha3Unclesstring
The SHA3 of the uncles data in the block
- signaturestring
The block signature encoded as a hexadecimal
- sizestring
The size of the 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 hashes
- transactionsRootstring
The root of the transaction trie of the block
- txOffsetstring
The transaction offset value for the block
- unclesarray
An array of uncle hashes
- withdrawalsarray
An array of withdrawals
- withdrawalsRootstring
The root of the withdrawals trie of the block
1{2"jsonrpc": "2.0",3"result": {4"hash": "0x0aae422316a0c19edb48cbb72e26614202a8b56daefb21c3e9920ede19c7670c",5"parentHash": "0x02389b554f04cc49e1e00888fbf273c099f932cf33b096c5ef4b77661d0b7b66",6"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",7"miner": "0xc833404089416eab548df4ef2a998599c57cd83e",8"stateRoot": "0x35677f5fe8a2fc49828b25bbaffc5bf6076495d1a775cb652dc7f4617c914c47",9"transactionsRoot": "0x355fdff4c3e431a2fa0d2ef8d4dcbd5bb68ffdd80bc6bf7d79c7d148dbed66f4",10"receiptsRoot": "0xf2e4ec80fbc2f3e1859edaccd7160694bb6b12ae81c54e66a98febfbbab5a1bd",11"logsBloom": "0x00000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000200000400000000000000000000000000000000000002000000008008000000000000000000000000020000000000000000000000000000000000000010000000000000000000000000000000000004000000000000000000400000000000000000000000000000000000000000000000000004000000010000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000042000000000000000000",12"difficulty": "0x0",13"number": "0x23592c0",14"gasLimit": "0xbebc200",15"gasUsed": "0x3a980",16"timestamp": "0x69208301",17"extraData": "0x0000000000000000000000000000000000000000000000000000000000000000",18"mixHash": "0x759d01b98a81302ff8369dfd0523ba0ffa8bb19945ba2b0177bd44038391d82e",19"nonce": "0x0000000000000000",20"baseFeePerGas": "0x174876e800",21"withdrawalsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",22"blobGasUsed": "0x0",23"excessBlobGas": "0x0",24"parentBeaconBlockRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",25"requestsHash": "0x0000000000000000000000000000000000000000000000000000000000000000",26"totalDifficulty": "0x0",27"size": "0x30f",28"uncles": [],29"transactions": [30"0x6ae0bb89e2b7170f243f7e48fe413e46ba26e6d1d24f6bb53746967168474ea3",31"0x92f28ebdf21ba386757b8a17292791ec70edce1dd0828f9202ccead768006e6a"32]33},34"id": 135}
1{2"jsonrpc": "2.0",3"result": {4"hash": "0x0aae422316a0c19edb48cbb72e26614202a8b56daefb21c3e9920ede19c7670c",5"parentHash": "0x02389b554f04cc49e1e00888fbf273c099f932cf33b096c5ef4b77661d0b7b66",6"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",7"miner": "0xc833404089416eab548df4ef2a998599c57cd83e",8"stateRoot": "0x35677f5fe8a2fc49828b25bbaffc5bf6076495d1a775cb652dc7f4617c914c47",9"transactionsRoot": "0x355fdff4c3e431a2fa0d2ef8d4dcbd5bb68ffdd80bc6bf7d79c7d148dbed66f4",10"receiptsRoot": "0xf2e4ec80fbc2f3e1859edaccd7160694bb6b12ae81c54e66a98febfbbab5a1bd",11"logsBloom": "0x00000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000200000400000000000000000000000000000000000002000000008008000000000000000000000000020000000000000000000000000000000000000010000000000000000000000000000000000004000000000000000000400000000000000000000000000000000000000000000000000004000000010000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000042000000000000000000",12"difficulty": "0x0",13"number": "0x23592c0",14"gasLimit": "0xbebc200",15"gasUsed": "0x3a980",16"timestamp": "0x69208301",17"extraData": "0x0000000000000000000000000000000000000000000000000000000000000000",18"mixHash": "0x759d01b98a81302ff8369dfd0523ba0ffa8bb19945ba2b0177bd44038391d82e",19"nonce": "0x0000000000000000",20"baseFeePerGas": "0x174876e800",21"withdrawalsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",22"blobGasUsed": "0x0",23"excessBlobGas": "0x0",24"parentBeaconBlockRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",25"requestsHash": "0x0000000000000000000000000000000000000000000000000000000000000000",26"totalDifficulty": "0x0",27"size": "0x30f",28"uncles": [],29"transactions": [30"0x6ae0bb89e2b7170f243f7e48fe413e46ba26e6d1d24f6bb53746967168474ea3",31"0x92f28ebdf21ba386757b8a17292791ec70edce1dd0828f9202ccead768006e6a"32]33},34"id": 135}