masterchainBlockShards - Ton

masterchainBlockShards. Fetches details of the shards associated with a specific masterchain block

masterchainBlockShards - ton [Value: 100CU]
Fetches details of the shards associated with a specific masterchain block
Use cases

Use cases

  • Get shard details of a masterchain block
  • Analyze shard distribution in a block
  • Audit masterchain block shard data
Constraints

Constraints

  • Requires valid masterchain block ID
  • Supports only Blocks V3 format
  • Depends on network sync
Get started
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key

Language

Request
Examples
curl --request GET \
     --url  'https://ton.drpc.org/rest/api/v3/masterchainBlockShards?seqno=41089440' \
     --header 'accept: application/json'
Copy
Response
200
{
    "ok": true,
    "result": [
        {
            "workchain": 0,
            "shard": -9223372036854775808,
            "seqno": 40467413,
            "root_hash": "abcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdef",
            "file_hash": "1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
        },
        {
            "workchain": 0,
            "shard": -9223372036854775807,
            "seqno": 40467413,
            "root_hash": "1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
            "file_hash": "abcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdef"
        }
    ]
}
Copy

Request params

Parametersinteger
integer
seqnointeger
The sequence number of the block.

Response

200

Response params

object
okboolean
Indicates if the request was successful.
resultarray
List of shard block details.
object
workchaininteger
ID of the workchain; 0 represents the base workchain.
shardinteger
ID of the shard in which the block resides.
seqnointeger
Sequence number of the block.
root_hashstring
Root hash of the block.
file_hashstring
File hash associated with the block.