Skip to main content
GET
/
getConsensusBlock
Get latest consensus block
curl --request GET \
  --url https://toncenter.com/api/v2/getConsensusBlock
{
  "ok": true,
  "result": {
    "@type": "blocks.masterchainInfo",
    "last": {
      "@type": "ton.blockIdExt",
      "workchain": -1,
      "shard": "-9223372036854775808",
      "seqno": 51148869,
      "root_hash": "HxogBiV2YA+KrC9cJa5llfvDGNk2hwCqsaCSYo40V00=",
      "file_hash": "h7LOaX0cTqc8qKecsNYi32SVu0McCito3P2qzynvdqk="
    },
    "state_root_hash": "SU9xlvY1tnXd/E06/9Ls8DOjNcCNpqf4wtJhC0+viok=",
    "init": {
      "@type": "ton.blockIdExt",
      "workchain": -1,
      "shard": "0",
      "seqno": 0,
      "root_hash": "F6OpKZKqvqeFp6CQmFomXNMfMj2EnaUSOXN+Mh+wVWk=",
      "file_hash": "XplPz01CXAps5qeSWUtxcyBfdAo5zVb1N979KLSKD24="
    },
    "@extra": "1755813293.2727234:6:0.6121521629223031"
  }
}

Response

Successful Response

ok
boolean
required
result
object

Consensus block information from the masterchain.

error
string
code
integer