Skip to main content

chain_getHeader

Returns the block header for a given hash on XX Network.

Use Cases#

  • Lightweight queries - Get header without full block data
  • Chain synchronization - Track block production for secure messaging, private payments, and quantum-resistant cryptography
  • Parent chain navigation - Follow parentHash links

Parameters#

ParameterTypeRequiredDescription
blockHashStringNoBlock hash. If omitted, returns latest header

Request#

{
"jsonrpc": "2.0",
"method": "chain_getHeader",
"params": ["0x91b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3"],
"id": 1
}

Code Examples#

curl https://api-xxnetwork.dwellir.com/YOUR_API_KEY \
-X POST \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "chain_getHeader",
"params": [],
"id": 1
}'