Get Masterchain Info
curl --request GET \
--url https://toncenter.com/api/v2/getMasterchainInfo{
"ok": true,
"result": {
"@type": "blocks.masterchainInfo",
"last": {
"@type": "ton.blockIdExt",
"workchain": 123,
"shard": "<string>",
"seqno": 123,
"root_hash": "<string>",
"file_hash": "<string>"
},
"state_root_hash": "<string>",
"init": {
"@type": "ton.blockIdExt",
"workchain": 123,
"shard": "<string>",
"seqno": 123,
"root_hash": "<string>",
"file_hash": "<string>"
}
}
}
Get up-to-date masterchain state
GET
/
api
/
v2
/
getMasterchainInfo
Get Masterchain Info
curl --request GET \
--url https://toncenter.com/api/v2/getMasterchainInfo{
"ok": true,
"result": {
"@type": "blocks.masterchainInfo",
"last": {
"@type": "ton.blockIdExt",
"workchain": 123,
"shard": "<string>",
"seqno": 123,
"root_hash": "<string>",
"file_hash": "<string>"
},
"state_root_hash": "<string>",
"init": {
"@type": "ton.blockIdExt",
"workchain": 123,
"shard": "<string>",
"seqno": 123,
"root_hash": "<string>",
"file_hash": "<string>"
}
}
}
Was this page helpful?