shards
TON node API
shards | TON v2
The shards method retrieves information about shards for a specific masterchain block in the TON blockchain. TON v2 via Chainstack.
GET
shards
The
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.
Get your own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.
TON billing: full or archive by block ageThis method is billed as archive (2 RUs) when the requested block is 128 or more seqno behind the tip, and full (1 RU) otherwise. See Request units — TON method scope.
Parameters
seqno(integer, required) — The sequence number of the masterchain block. Example:39064874.
JSON-RPC examples
Shell
Response
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.
Use case
A possible use case for theshards 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:
- Track the evolution of shards over time by querying this endpoint for different masterchain block heights.
- Implement shard-aware applications that need to route transactions or queries to specific shards.
- Analyze the load distribution across different shards in the TON network.
- Build block explorers that can display detailed shard information for each masterchain block.
Last modified on June 4, 2026