Skip to main content

chain_getBlockHash

Returns the block hash for a given block number on Kusama.

Use Cases#

  • Historical queries - Convert block numbers to hashes
  • Block navigation - Navigate blockchain history for parachain experimentation, early feature deployment, and production-grade testing with real value
  • Data indexing - Build block number to hash mappings

Parameters#

ParameterTypeRequiredDescription
blockNumberNumberNoBlock number. If omitted, returns latest block hash

Request#

{
"jsonrpc": "2.0",
"method": "chain_getBlockHash",
"params": [1000000],
"id": 1
}

Code Examples#

curl  \
-X POST \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "chain_getBlockHash",
"params": [1000000],
"id": 1
}'