curl --request GET \
--url https://ton-mainnet.core.chainstack.com/f2a2411bce1e54a2658f2710cd7969c3/api/v2/getConsensusBlock
{
"consensus_block": 123,
"timestamp": 123,
"timestamp_string": "<string>"
}
curl --request GET \
--url https://ton-mainnet.core.chainstack.com/f2a2411bce1e54a2658f2710cd7969c3/api/v2/getConsensusBlock
{
"consensus_block": 123,
"timestamp": 123,
"timestamp_string": "<string>"
}
getConsensusBlock
method retrieves information about the latest consensus block in the TON blockchain. This method provides crucial details about the most recent block that has achieved consensus across the network.
curl -X POST \
'https://ton-mainnet.core.chainstack.com/f2a2411bce1e54a2658f2710cd7969c3/api/v2/jsonRPC' \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "getConsensusBlock",
"params": {}
}'
consensus_block
(integer) — The sequence number of the latest consensus block.timestamp
(integer) — The Unix timestamp of the latest consensus block.timestamp_string
(string) — The human-readable timestamp of the latest consensus block.getConsensusBlock
method in TON is for applications or services that need to track the current state of the blockchain consensus. This method can be used to:
Information about the latest consensus block
The response is of type object
.
Was this page helpful?