⚠️Blast API (blastapi.io) ends Oct 31. Migrate to Dwellir and skip Alchemy's expensive compute units.
Switch Today →
Skip to main content

chain_getBlockHash – Mythos JSON-RPC Method

Returns the block hash for a given block number. If no number is supplied, the current best block hash is returned. Use this when correlating on-chain events from dashboards or time-series storage backends.

Parameters

ParameterTypeRequiredDescription
blockNumberstring or numberNo32-bit unsigned block number (hex or decimal). When omitted, returns the latest block hash.

Request Example

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

Curl Example

curl https://api-mythos-archive.n.dwellir.com/YOUR_API_KEY \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "chain_getBlockHash",
"params": ["0x27dc30"],
"id": 1
}'