Retrieves information about the current state of the masterchain
masterchainInfo
endpoint retrieves information about the current state of the masterchain in the TON blockchain. This includes details about the last masterchain block, the initial masterchain block, and the current state root hash.
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 ID 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.now
(integer) — The current timestamp.masterchainInfo
endpoint is crucial for applications that need to stay synchronized with the current state of the TON blockchain. Some common use cases include:
Successful response
The response is of type object
.