Skip to main content

chain_getFinalizedHead RPC method

The chain_getFinalizedHead method is essential for querying the hash of the most recently finalized block in the canonical blockchain. This function is critical in scenarios where tracking the progression of the chain's finality is necessary. It does not require any parameters, simplifying the process of getting the latest finalized block's hash.

Parameters

This method does not accept any parameters

Returns

BlockHash string

Cryptographic hash of the latest finalized block.

Code Examples

curl https://api-polkadot.dwellir.com/<API-KEY> \
-X POST \
-H "Content-Type: application/json" \
--data '{"method":"chain_getFinalizedHead","params":[],"id":1,"jsonrpc":"2.0"}'