Get Block Header
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Returns the header of the most recent (best) block in the Polkadot blockchain.
This method is part of the Polkadot JSON-RPC 2.0 specification for chain-related operations. The header contains critical information about the block including hashes, roots, and consensus data.
Body
jsonrpcstring2.0requiredThe JSON-RPC protocol version. Must be exactly "2.0".
methodstringchain_getHeaderrequiredThe JSON-RPC method to call. For this endpoint, must be "chain_getHeader".
paramsArray<any>requiredParameters for the method. For chain_getHeader, this should be an empty array as it retrieves the latest block header without additional parameters.
idinteger<int32>requiredRequest identifier that will be returned in the response. Used to match requests with responses when making multiple concurrent calls.
Response
Successful response containing the block header information.
The header represents the most recent block in the best chain and contains cryptographic commitments to the block's contents and state.
Bad Request - Invalid JSON-RPC request Possible reasons:
- Invalid JSON syntax
- Missing required fields
- Invalid method name
- Invalid parameters
Internal Server Error The node encountered an internal error while processing the request.
Service Unavailable The node is currently unavailable, possibly due to maintenance or synchronization.