blocks

Get Masterchain Info

Returns the current state of the TON masterchain. The last field contains the latest block used for querying current state. The seqno in last is the current block height. Use this endpoint to obtain the latest block reference for other queries.

get/api/v2/getMasterchainInfo

Request

  • Base URL: https://toncenter.com (the document declares no server; this is the origin it was published from)
  • URL: https://toncenter.com/api/v2/getMasterchainInfo
  • Auth: one of:
    • API key in header X-API-Key
    • API key in query parameter api_key

Response

The current masterchain state, including the latest block identifier, its state root hash, and the genesis block reference. Use result.last.seqno as the current block height.

okboolean required

Returns true if the request succeeded; otherwise false. See the error field for details.

@extrastring required
jsonrpcstring

JSON-RPC protocol version identifier.

idstring

Changes

No recorded changes to this operation across all 1 revision of this API.