For the complete documentation index, see llms.txt. This page is also available as Markdown.

consensus_getFinalization - Tempo

Example code for the consensus_getFinalization JSON-RPC method. Complete guide on how to use consensus_getFinalization JSON-RPC in GetBlock Web3 documentation.

Gets a finalized block by height or "latest". Returns a CertifiedBlock object including the BLS finalization certificate, consensus epoch and view, and the full Tempo block. Used by bridges, indexers, and explorers that need verifiable finality proofs.

Parameters

Parameter
Type
Required
Description

query

string or object

Yes

Either the literal string "latest" or an object {"height": number}

Request Example

curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "jsonrpc": "2.0",
    "method": "consensus_getFinalization",
    "params": [
        "latest"
    ],
    "id": "getblock.io"
}'

Response Example

Response Parameters

Field
Type
Description

result

CertifiedBlock | null

Certified block object, or null if no matching finalization exists

result.epoch

integer

Consensus epoch in which the block was finalized

result.view

integer

Consensus view in which the block was finalized

result.digest

string

Block digest (32 bytes hex)

result.certificate

string

Hex-encoded BLS finalization certificate — verifiable proof of finality

result.block

object

The full Tempo block (same shape as eth_getBlockByNumber)

Use Cases

  • Cross-chain bridges proving Tempo finality on other chains

  • Light clients verifying that a block is irreversibly final

  • Indexers that need consensus-layer finality proofs in addition to block data

Error Handling

Status Code
Error Message
Cause

403

Forbidden

Missing or invalid <ACCESS-TOKEN>

-32602

Invalid params

Request parameters are missing or malformed

-32601

Method not found

Method does not exist or is not enabled on this node

429

Too Many Requests

Rate limit exceeded for your plan

-32601

Method not found

This is a validator-only method — not exposed on shared infrastructure

Last updated

Was this helpful?