Skip to main content
GET
/
api
/
v2
/
getMasterchainInfo
Get Masterchain Info
curl --request GET \
  --url https://toncenter.com/api/v2/getMasterchainInfo
{
  "ok": true,
  "result": {
    "@type": "blocks.masterchainInfo",
    "last": {
      "@type": "ton.blockIdExt",
      "workchain": 123,
      "shard": "<string>",
      "seqno": 123,
      "root_hash": "<string>",
      "file_hash": "<string>"
    },
    "state_root_hash": "<string>",
    "init": {
      "@type": "ton.blockIdExt",
      "workchain": 123,
      "shard": "<string>",
      "seqno": 123,
      "root_hash": "<string>",
      "file_hash": "<string>"
    }
  }
}

Response

OK

ok
boolean
required
Example:

true

result
MasterchainInfo · object
required

Information about the latest masterchain block.