GETGet consensus block

TON Mainnethttps://ton-mainnet.nodit.io/api/v2/getConsensusBlock
CU10

Returns the latest block that has reached consensus and is guaranteed to be final. This block will never be reverted, making it safe for confirming transactions that require absolute finality.

Responses
okbooleanrequired

Returns true if the request succeeded; otherwise false. See the error field for details.

@typestring (enum)required

TonLib type identifier for consensus block info. Refer to the TonLib type reference for a full list.

consensus_blockinteger (int32)required

Sequence number of the latest consensus block.

timestampinteger (int32)required

Unix timestamp when the consensus block was created.

@extrastring

Optional request ID that can be passed in the request and received back in the response. Useful for matching async responses.

X-API-KEY
Request
cURL
curl -X GET "https://ton-mainnet.nodit.io/api/v2/getConsensusBlock" \
  -H "X-API-KEY: {YOUR_API_KEY}"
Response
Example · 200
{
  "ok": true,
  "result": {
    "@type": "ext.blocks.consensusBlock",
    "consensus_block": 107892797,
    "timestamp": 1795684345
  },
  "@extra": "1795684346:_:0.002:c"
}