📍ftm.getBlockByHash()
Description: Retrieves information about a block using its hash.
Parameters
Name
Type
Description
hash
string
The hash of the block.
boolean
boolean
If true
, returns full transaction objects; if false
, returns only transaction hashes.
Returns
Type
Description
object
A block object, or null
if no block was found.
Response Object Structure
Field
Type
Description
number
string
The block number encoded as a hexadecimal. null
if pending.
hash
string
The block hash. null
if pending.
parentHash
string
Hash of the parent block.
nonce
string
Hash of the generated proof-of-work. null
if pending.
sha3Uncles
string
SHA3 hash of the uncles data in the block.
logsBloom
string
Bloom filter for logs in the block. null
if pending.
transactionsRoot
string
Root of the transaction trie for this block.
stateRoot
string
Root of the final state trie of this block.
receiptsRoot
string
Root of the receipts trie of the block.
miner
string
Address of the beneficiary receiving mining rewards.
difficulty
string
Difficulty level for this block, encoded as a hexadecimal.
totalDifficulty
string
Total difficulty of the chain until this block, encoded as a hexadecimal.
extraData
string
Extra data field of the block.
size
string
Size of the block in bytes, encoded as a hexadecimal.
gasLimit
string
Maximum gas allowed in this block, encoded as a hexadecimal.
gasUsed
string
Total gas used by all transactions in this block, encoded as a hexadecimal.
timestamp
string
Unix timestamp of when the block was collated.
transactions
array
Array of transaction objects (see eth_getTransactionByHash
for structure).
uncles
array
Array of uncle block hashes.
Last updated