Get block header by number
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
The erigon_getHeaderByNumber method returns the block header for the specified block number.
This Erigon-specific method provides detailed header information including:
- Block metadata (number, hash, parent hash)
- Timestamp and difficulty
- Gas usage and limits
- Miner information
- State root and transaction roots
This method is useful for blockchain analysis and retrieving historical block data.
Body
The erigon_getHeaderByNumber method returns the block header for the specified block number.
This Erigon-specific method provides detailed header information including:
- Block metadata (number, hash, parent hash)
- Timestamp and difficulty
- Gas usage and limits
- Miner information
- State root and transaction roots
This method is useful for blockchain analysis and retrieving historical block data.
Request payload for Get block header by number.
jsonrpcstring2.0requiredJSON-RPC version identifier
methodstringerigon_getHeaderByNumberrequiredThe method to be invoked
idinteger | stringrequiredRequest identifier for matching responses
paramsArray<string | string>requiredArray containing block number or block tag
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