curl --request GET \
--url https://ton-mainnet.core.chainstack.com/f2a2411bce1e54a2658f2710cd7969c3/api/v2/shards
{
"shards": [
{
"workchain": 123,
"shard": "<string>",
"seqno": 123,
"root_hash": "<string>",
"file_hash": "<string>"
}
]
}
curl --request GET \
--url https://ton-mainnet.core.chainstack.com/f2a2411bce1e54a2658f2710cd7969c3/api/v2/shards
{
"shards": [
{
"workchain": 123,
"shard": "<string>",
"seqno": 123,
"root_hash": "<string>",
"file_hash": "<string>"
}
]
}
shards
method retrieves information about shards for a specific masterchain block in the TON blockchain. This method provides details about the current state of shards at a given masterchain block height.
seqno
(integer, required) — The sequence number of the masterchain block. Example: 39064874
.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": "shards",
"params": {
"seqno": 39064874
}
}'
shards
(array of objects) — An array containing information about each shard, where each object includes:
workchain
(integer) — The ID of the workchain to which the shard belongs.shard
(string) — The ID of the shard.seqno
(integer) — The sequence number of the shard block.root_hash
(string) — The root hash of the shard block.file_hash
(string) — The file hash of the shard block.shards
method in TON is for applications or services that need to monitor or analyze the sharding structure of the TON blockchain. This method can be used to:
The sequence number of the masterchain block
Information about shards for the specified masterchain block
The response is of type object
.
Was this page helpful?