Home

Get block header by hash

POST
https://eth-archive.nownodes.io/

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

The erigon_getHeaderByHash method returns the block header for the specified block hash.

This Erigon-specific method provides detailed header information including:

  • Block metadata (number, hash, parent hash)
  • Timestamp and difficulty
  • Gas usage and limits
  • Miner/validator information
  • State root and transaction roots

This method is useful for blockchain analysis and verifying block information.

Body

application/json

The erigon_getHeaderByHash method returns the block header for the specified block hash.

This Erigon-specific method provides detailed header information including:

  • Block metadata (number, hash, parent hash)
  • Timestamp and difficulty
  • Gas usage and limits
  • Miner/validator information
  • State root and transaction roots

This method is useful for blockchain analysis and verifying block information.

Request payload for Get block header by hash.

jsonrpcstring2.0required

JSON-RPC version identifier

methodstringerigon_getHeaderByHashrequired

The method to be invoked

idinteger | stringrequired

Request identifier for matching responses

paramsArray<string>required

Array containing block hash

Response

200OK

Successful block header response

400Bad Request

Invalid request parameters

401Unauthorized

Unauthorized: API key is present but rejected by the NOWNodes gateway.

404Not Found

Block not found

405Method Not Allowed

Method Not Allowed. Returned by the NOWNodes gateway for malformed or unsupported gateway-level requests.

422Unprocessable Entity

Missing API key. The NOWNodes gateway returns plain text for this error.

500Internal Server Error

Internal server error