Skip to main content
POST
/
api
/
v2
/
getConsensusBlock
Get consensus block
curl --request POST \
  --url https://toncenter.com/api/v2/getConsensusBlock \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{}'
{
  "ok": true,
  "result": {
    "@type": "ext.blocks.consensusBlock",
    "consensus_block": 123,
    "timestamp": 123
  },
  "@extra": "<string>"
}

Authorizations

X-API-Key
string
header
required

Body

application/json · object

Empty request body for endpoints that require no parameters.

Response

OK

Response containing the latest consensus block information.

ok
boolean
default:true
required

Indicates if the request succeeded. If false, check the error field for details.

result
object
required

The response data. Only present when ok is true.

@extra
string

Optional request ID that you can pass in the request and receive back in the response. Useful for matching async responses.