rpc
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.
post/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
Request body
Masterchain Info Request required
Empty request body for endpoints that require no parameters.
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.
Changes
No recorded changes to this operation across all 1 revision of this API.