Get consensus block and its update timestamp.
curl --request GET \
--url https://toncenter.com/api/v2/getConsensusBlock{
"ok": true,
"result": {
"last": {
"workchain": 123,
"shard": "<string>",
"seqno": 123,
"root_hash": "<string>",
"file_hash": "<string>",
"@type": "ton.blockIdExt"
},
"state_root_hash": "<string>",
"init": {
"workchain": 123,
"shard": "<string>",
"seqno": 123,
"root_hash": "<string>",
"file_hash": "<string>",
"@type": "ton.blockIdExt"
},
"@type": "blocks.masterchainInfo",
"@extra": "<string>"
},
"error": "<string>",
"code": 123
}Successful Response
Consensus block information from the masterchain.
Show child attributes
Extended block identifier.
Extended block identifier.
"blocks.masterchainInfo"
Was this page helpful?
curl --request GET \
--url https://toncenter.com/api/v2/getConsensusBlock{
"ok": true,
"result": {
"last": {
"workchain": 123,
"shard": "<string>",
"seqno": 123,
"root_hash": "<string>",
"file_hash": "<string>",
"@type": "ton.blockIdExt"
},
"state_root_hash": "<string>",
"init": {
"workchain": 123,
"shard": "<string>",
"seqno": 123,
"root_hash": "<string>",
"file_hash": "<string>",
"@type": "ton.blockIdExt"
},
"@type": "blocks.masterchainInfo",
"@extra": "<string>"
},
"error": "<string>",
"code": 123
}