Skip to main content

chain_getBlockHash

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

Use Cases#

  • Historical queries - Convert block numbers to hashes
  • Block navigation - Navigate blockchain history for AAA gaming (FIFA Rivals, NFL Rivals, Pudgy Party), player-owned economies, and bot-resistant matchmaking
  • 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 https://api-mythos-archive.n.dwellir.com/YOUR_API_KEY \
-X POST \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "chain_getBlockHash",
"params": [1000000],
"id": 1
}'