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

Authorizations

X-API-Key
string
header
required

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.