Eth_getBlockByHash

Get Block by Hash

post

Returns the block information for the specified block hash. 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_getBlockByHash
paramsstring[] · min: 2 · max: 2Required

Array of parameters:

  1. Block hash (string)
  2. Boolean flag — if true, return full transactions; if false, only hashes.
Example: ["0x7f9d3a8f8a6b6d4415a93b0f8d8a2bfc5a44d5e7a3cb1a3a5cf3a0f8d1c6c1d2",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