Get block header by hash
Authorizations
ApiKeyAuthApiKeyAuthapi-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
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.0requiredJSON-RPC version identifier
methodstringerigon_getHeaderByHashrequiredThe method to be invoked
idinteger | stringrequiredRequest identifier for matching responses
paramsArray<string>requiredArray containing block hash
Response
Successful block header response
Invalid request parameters
Unauthorized: API key is present but rejected by the NOWNodes gateway.
Block not found
Method Not Allowed. Returned by the NOWNodes gateway for malformed or unsupported gateway-level requests.
Missing API key. The NOWNodes gateway returns plain text for this error.
Internal server error