getMasterchainInfo - Ton
getMasterchainInfo. Provides information about the current state of the masterchain, including its latest block details and other relevant metadata.
getMasterchainInfo - ton [Value: 100CU]
Provides information about the current state of the masterchain, including its latest block details and other relevant metadata.
Use cases
- Get details of the TON masterchain
- Monitor masterchain status and properties
- Access the latest masterchain block info
Constraints
- Requires a synced node for accurate data
- Only provides current masterchain info
- Dependent on node connectivity to the network
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key
Language
Request
Examples
curl --request GET \
--url 'https://ton.drpc.org/rest/getMasterchainInfo' \
--header 'accept: application/json'
Response
200
{
"ok": true,
"result": {
"@type": "blocks.masterchainInfo",
"last": {
"@type": "ton.blockIdExt",
"workchain": -1,
"shard": "-9223372036854775808",
"seqno": 41579322,
"root_hash": "cbKM7O8sO62lSHGEkTvzziOnsz/dKyWoUm3KH/jVy2Y=",
"file_hash": "+Zw6wiciKr263nTKNj5sv9M/oktH0+fvzSFnAr3hc34="
},
"state_root_hash": "+VEFfbRE6vNcH1i3uU5dqAlyckasYo6JmrhJl9aRLdA=",
"init": {
"@type": "ton.blockIdExt",
"workchain": -1,
"shard": "0",
"seqno": 0,
"root_hash": "F6OpKZKqvqeFp6CQmFomXNMfMj2EnaUSOXN+Mh+wVWk=",
"file_hash": "XplPz01CXAps5qeSWUtxcyBfdAo5zVb1N979KLSKD24="
},
"@extra": "1730410713.161648:0:0.9739182289304882"
}
}
Request params
Response
200
Response params
object
okboolean
Indicates whether the request was successful.
resultobject
Contains the result data.
object
@typestring
Type of the result structure, indicating it's masterchain information.
lastobject
Details of the last block in the masterchain.
object
@typestring
Type of the block identifier.
workchaininteger
ID of the workchain; -1 represents the masterchain.
shardinteger
ID of the shard, represented as a signed integer.
seqnointeger
Sequence number of the last block.
root_hashstring
Root hash of the last block.
file_hashstring
File hash associated with the last block.
state_root_hashstring
Root hash representing the state of the masterchain.
initobject
Initialization block details.
object
@typestring
Type of the initialization block identifier.
workchaininteger
ID of the workchain; -1 represents the masterchain.
shardstring
ID of the shard for the initialization block.
seqnointeger
Sequence number of the initialization block.
root_hashstring
Root hash of the initialization block.
file_hashstring
File hash associated with the initialization block.
@extrastring
Extra information related to the response.