> ## Documentation Index
> Fetch the complete documentation index at: https://docs.uniblock.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# shards

> Retrieves TON shard descriptors for a masterchain block.

### Parameters

<ParamField query="chainId" type="string" default="toncoin-testnet" required>
  Unique identifier for a blockchain network.
</ParamField>

<ParamField body="id" type="number" default={1} required>
  Request identifier used to match responses.
</ParamField>

<ParamField body="jsonrpc" type="string" default="2.0" required>
  JSON-RPC version.
</ParamField>

<ParamField body="method" type="string" default="shards" required>
  JSON-RPC method name.
</ParamField>

<ParamField body="params" type="object" default={{}} required>
  TON shard descriptor request.

  Parameters for <code>shards</code>:

  <ul>
    <li><code>params.seqno</code>: Masterchain block sequence number.</li>
  </ul>
</ParamField>

### Returns

<ResponseField name="result" type="object">
  TON shard descriptors.

  <Expandable title="properties">
    <ResponseField name="@type" type="string" />

    <ResponseField name="shards" type="array">
      Shard block identifiers.

      <Expandable title="items">
        <ResponseField name="items[]" type="object">
          TON extended block identifier.

          <Expandable title="properties">
            <ResponseField name="@type" type="string">
              TON object type marker.
            </ResponseField>

            <ResponseField name="workchain" type="integer">
              Block workchain ID. The masterchain uses -1.
            </ResponseField>

            <ResponseField name="shard" type="string">
              Block shard ID encoded as a signed 64-bit integer string.
            </ResponseField>

            <ResponseField name="seqno" type="integer">
              Block sequence number.
            </ResponseField>

            <ResponseField name="root_hash" type="string">
              Block root hash.
            </ResponseField>

            <ResponseField name="file_hash" type="string">
              Block file hash.
            </ResponseField>
          </Expandable>
        </ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="@extra" type="string">
      Provider-specific response metadata.
    </ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```bash Curl theme={null}
  curl --request POST \
    --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=toncoin-testnet \
    --header 'content-type: application/json' \
    --data '{
      "id": 1,
      "jsonrpc": "2.0",
      "method": "shards",
      "params": {}
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json Success theme={null}
  {
    "jsonrpc": "2.0",
    "id": 1,
    "result": {}
  }
  ```
</ResponseExample>
