getMasterchainInfo
TON node API
getMasterchainInfo | TON v2
The getMasterchainInfo method retrieves information about the current state of the TON masterchain. Use it on TON v2 via Chainstack.
GET
getMasterchainInfo
The
getMasterchainInfo method retrieves information about the current state of the TON masterchain. This method provides crucial details about the latest masterchain block and the initial state of the masterchain.
Get your own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.
TON billing: full (1 RU)This method is always billed as full. See Request units — TON method scope.
Parameters
This method doesn’t require any parameters.JSON-RPC example
Shell
Response
last(object) — Information about the last masterchain block:seqno(integer) — The sequence number of the last masterchain block.shard(string) — The shard identifier of the last masterchain block.workchain(integer) — The workchain identifier of the last masterchain block.fileHash(string) — The file hash of the last masterchain block.rootHash(string) — The root hash of the last masterchain block.
init(object) — Information about the initial masterchain block:fileHash(string) — The file hash of the initial masterchain block.rootHash(string) — The root hash of the initial masterchain block.
stateRootHash(string) — The state root hash of the masterchain.version(integer) — The version of the masterchain.
Use case
A possible use case for thegetMasterchainInfo method in TON is for applications that need to monitor or sync with the current state of the TON blockchain. This method can be used to:
- Track the latest block in the masterchain for synchronization purposes.
- Verify the current state of the blockchain against a known state.
- Monitor the progress of the masterchain in terms of block sequence numbers.
- Obtain necessary information for validating and processing transactions.
Last modified on June 4, 2026