Skip to main content

beefy_getFinalizedHead RPC method

The beefy_getFinalizedHead RPC method is designed for retrieving the hash of the most recently finalized block, as processed by the BEEFY consensus protocol. This method is particularly relevant in environments where it is critical to confirm the finality of blocks, without any additional parameters required.

Parameters

This method does not accept any parameters

Returns

H256 string

Produces a string representing the H256 hash of the most recent block that has achieved finality through the BEEFY mechanism, as perceived by the querying client.

Code Examples

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