Eth_getBlockByNumber
Authorizations
api-keystringRequired
Body
jsonrpcstringRequiredExample:
JSON-RPC version
2.0methodstringRequiredExample:
JSON-RPC method name
eth_getBlockByNumberparamsstring[] · min: 2 · max: 2RequiredExample:
Array of parameters:
- Block number (hex string, e.g., "0x1b4") or special tags ("latest", "earliest", "pending")
- Boolean flag — if true, return full transactions; if false, only hashes.
["0x1b4",false]idintegerRequiredExample:
Request ID
1Responses
200
Block information
application/json
jsonrpcstringOptionalExample:
JSON-RPC version
2.0idintegerOptionalExample:
Same ID as in request
1post
/200
Block information
Last updated