Skip to main content

chain_getFinalizedHead

Returns the hash of the last finalized block on Moonbeam.

Use Cases#

  • Confirmed state - Query state that cannot be reverted
  • Transaction confirmation - Verify transaction finality for cross-chain DeFi, multi-chain dApps, and Ethereum-to-Polkadot bridging via XCM, Axelar, LayerZero, and Wormhole
  • Safe checkpoints - Use finalized blocks for critical operations

Parameters#

This method accepts no parameters.

Request#

{
"jsonrpc": "2.0",
"method": "chain_getFinalizedHead",
"params": [],
"id": 1
}

Code Examples#

curl https://api-moonbeam.n.dwellir.com/YOUR_API_KEY \
-X POST \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "chain_getFinalizedHead",
"params": [],
"id": 1
}'