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
- resultobject
A block object, or null when no block was found
- baseFeePerGasstring
Base fee per gas for the block, encoded as a hexadecimal (EIP-1559 only)
- difficultystring
The difficulty for this block encoded as a hexadecimal
- extraDatastring
The extra data field of this block encoded as a hexadecimal
- 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
The block hash of the requested block. null if pending
- logsBloomstring
The bloom filter for the logs of the block encoded as a hexadecimal. null if pending
- minerstring
The address of the beneficiary to whom the mining rewards were given
- mixHashstring
The hash of the mix digest used to prove the validity of the block
- noncestring
The hash of the generated proof-of-work. null if pending
- numberstring
The block number of the requested block encoded as a hexadecimal. null if pending
- 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 encoded as a hexadecimal
- stateRootstring
The root of the final state trie of the block
- timestampstring
The unix timestamp for when the block was collated encoded as a hexadecimal
- totalDifficultystring
The total difficulty of the chain until this block encoded as a hexadecimal
- transactionsarray
An array of transaction objects or hashes
- transactionsRootstring
The root of the transaction trie of the block
- unclesarray
An array of uncle block hashes