eth_getBlockByHash
Returns information about a block by hash.
Params
(2)1. block_hash (required)
string<hex>
2. return_full_txns (required)
boolean
Result
(MonadEthGetBlock)difficulty
stringextraData
stringgasLimit
stringgasUsed
stringhash
string or null
logsBloom
stringminer
stringnonce
anynumber
anyparentHash
stringreceiptsRoot
stringsha3Uncles
stringsize
anystateRoot
stringtimestamp
stringtransactions
arraytransactionsRoot
stringuncles
arrayExample
Request
await window.ethereum.request({
"method": "eth_getBlockByHash",
"params": []
});
Result
{
"difficulty": "0x0",
"extraData": "0x",
"gasLimit": "0x0",
"gasUsed": "0x0",
"hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"miner": "0x0000000000000000000000000000000000000000",
"nonce": null,
"number": null,
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"receiptsRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",
"sha3Uncles": "0x0000000000000000000000000000000000000000000000000000000000000000",
"size": null,
"stateRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",
"timestamp": "0x0",
"transactions": [],
"transactionsRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",
"uncles": []
}