chain_getFinalizedHead – Mythos JSON-RPC Method
Returns the hash of the most recent block that has achieved GRANDPA finality on Mythos. This is useful for settlement logic that only proceeds once a block is irreversible.
Parameters#
This method takes no parameters.
Returns#
| Field | Type | Description |
|---|---|---|
result | string | Hex-encoded block hash for the last finalized block. |
Request Example#
{
"jsonrpc": "2.0",
"method": "chain_getFinalizedHead",
"params": [],
"id": 1
}
Usage Tips#
- After retrieving the hash, call
chain_getBlockto inspect the finalized block contents. - Combine with
state_getStorageat that hash to read immutable state for compliance-sensitive workflows.