Eth_getBlockByNumber

Get Block by Number

post

Returns the block information for the specified block number. The second parameter indicates whether to return full transaction objects or just transaction hashes.

Authorizations
api-keystringRequired
Body
jsonrpcstringRequired

JSON-RPC version

Example: 2.0
methodstringRequired

JSON-RPC method name

Example: eth_getBlockByNumber
paramsstring[] · min: 2 · max: 2Required

Array of parameters:

  1. Block number (hex string, e.g., "0x1b4") or special tags ("latest", "earliest", "pending")
  2. Boolean flag — if true, return full transactions; if false, only hashes.
Example: ["0x1b4",false]
idintegerRequired

Request ID

Example: 1
Responses
chevron-right
200

Block information

application/json
jsonrpcstringOptional

JSON-RPC version

Example: 2.0
idintegerOptional

Same ID as in request

Example: 1
post
/
200

Block information

Last updated