v1

latestOpenAPI 3.0.02026-07-26541677.9 KB
Ethereum API

eth_getBlockByNumber

Returns information about a block by number

post/eth_getBlockByNumber

Request body

jsonrpcstring required

JSON-RPC version

methodstring required

The method to call

idinteger required

Request identifier

Response

Returns block information

jsonrpcstring
idinteger

Example response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "number": "0x1b4",
    "hash": "0xdc0818cf78f21a8e70579cb46a43643f78291264dda342ae31049421c82d21ae",
    "parentHash": "0x59f0ff194fe56f5b5fe5436df726c0f6201ce7d6364a04361c7324cceb322a67"
  }
}