Eth_getBlockByHash

Get block information by block hash

post

Returns information about a block specified by its hash. The second parameter determines whether full transaction objects or only transaction hashes are returned.

Authorizations
api-keystringRequired
Body
jsonrpcstringRequired

JSON-RPC protocol version (always "2.0")

Example: 2.0
methodstringRequired

The 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 identifier

Example: 1
Responses
chevron-right
200

Successful response

application/json
jsonrpcstringRequired

JSON-RPC version

Example: 2.0
idintegerRequired

ID of the request

Example: 1
post
/

Last updated