Skip to main content

chain_getHeader

Returns the block header for a given hash on Bittensor.

Use Cases#

  • Lightweight queries - Get header without full block data
  • Chain synchronization - Track block production for decentralized AI inference, subnet-specific AI models, TAO staking, and cross-subnet AI collaboration
  • Parent chain navigation - Follow parentHash links

Parameters#

ParameterTypeRequiredDescription
blockHashStringNoBlock hash. If omitted, returns latest header

Request#

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

Code Examples#

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