eth_getBlockByHash
Returns information about a block by its hash including all transaction details.
Parameters
Returns
Request
{
"jsonrpc": "2.0",
"method": "eth_getBlockByHash",
"params": ["0x1b4", true],
"id": 1
}
Response
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"number": "0x1b4",
"hash": "0xdc0818cf78f21a8e70579cb46a43643f78291264dda342ae31049421c82d21ae",
"parentHash": "0xe99e022112df268087ea7eafaf4790497fd21dbeeb6bd7a1721df161a6657a54",
"gasLimit": "0x47e7c4",
"gasUsed": "0x5208",
"timestamp": "0x55ba467c",
"transactions": []
}
}
Last updated