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
Parameter | Type | Required | Description |
---|---|---|---|
blockNumber | string or number | No | 32-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
}'