Skip to main content

chain_getHeader

Returns the block header for a given hash on Asset Hub.

Use Cases#

  • Lightweight queries - Get header without full block data
  • Chain synchronization - Track block production for native stablecoin transfers (USDC, USDT), DOT staking and governance, and cross-chain asset management via XCM
  • 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-asset-hub-polkadot.n.dwellir.com/<YOUR_API_KEY>/YOUR_API_KEY \
-X POST \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "chain_getHeader",
"params": [],
"id": 1
}'