> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
> Use this file to discover all available pages before exploring further.

# getConsensusBlock | TON v2

> The getConsensusBlock method retrieves information about the latest consensus block in the TON blockchain. Chainstack TON v2 reference.

The `getConsensusBlock` method retrieves information about the latest consensus block in the TON blockchain. This method provides crucial details about the most recent block that has achieved consensus across the network.

<Note>
  **TON billing: full (1 RU)**

  This method is always billed as full. See [Request units — TON method scope](/docs/request-units#ton-method-scope).
</Note>

## JSON-RPC example

```shell Shell theme={"system"}
curl -X POST \
  'https://ton-mainnet.core.chainstack.com/f2a2411bce1e54a2658f2710cd7969c3/api/v2/jsonRPC' \
  -H 'Content-Type: application/json' \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "getConsensusBlock",
    "params": {}
  }'
```

## Parameters

This method doesn't require any parameters.

## Response

* `consensus_block` (integer) — The sequence number of the latest consensus block.
* `timestamp` (integer) — The Unix timestamp of the latest consensus block.
* `timestamp_string` (string) — The human-readable timestamp of the latest consensus block.

## Use case

A possible use case for the `getConsensusBlock` method in TON is for applications or services that need to track the current state of the blockchain consensus. This method can be used to:

1. Determine the latest block that has achieved network-wide consensus.
2. Synchronize application state with the confirmed blockchain state.
3. Implement waiting mechanisms for transaction confirmation based on consensus blocks.
4. Monitor the progress and health of the TON network by tracking consensus block updates.


## OpenAPI

````yaml openapi/ton_node_api/v2/getConsensusBlock.json GET /getConsensusBlock
openapi: 3.0.0
info:
  title: getConsensusBlock example
  version: 1.0.0
  description: >-
    This is an API example for getConsensusBlock, a method to retrieve
    information about the latest consensus block in the TON blockchain.
servers:
  - url: >-
      https://ton-mainnet.core.chainstack.com/f2a2411bce1e54a2658f2710cd7969c3/api/v2
security: []
paths:
  /getConsensusBlock:
    get:
      tags:
        - TON Operations
      summary: getConsensusBlock
      operationId: getConsensusBlock
      responses:
        '200':
          description: Information about the latest consensus block
          content:
            application/json:
              schema:
                type: object
                properties:
                  consensus_block:
                    type: integer
                    description: The sequence number of the latest consensus block
                  timestamp:
                    type: integer
                    description: The Unix timestamp of the latest consensus block
                  timestamp_string:
                    type: string
                    description: The human-readable timestamp of the latest consensus block

````