> ## 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.

# getAssetsByGroup

> Retrieves a list of Solana assets belonging to a specified group (key, value pair). Requires Solana DAS API add-on.

### Parameters

<ParamField query="chainId" type="string" default="solana" 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="getAssetsByGroup" required>
  JSON-RPC method name.
</ParamField>

<ParamField body="params" type="object" default={[{"groupKey":"collection","groupValue":"J2ZfLdQsaZ3GCmbucJef3cPnPwGcgjDW1SSYtMdq3L9p","options":{"limit":10,"sortBy":{"sortBy":"created","sortDirection":"desc"},"showCollectionMetadata":true}}]} placeholder="[{&#x22;groupKey&#x22;:&#x22;collection&#x22;,&#x22;groupValue&#x22;:&#x22;J2ZfLdQsaZ3GCmbucJef3cPnPwGcgjDW1SSYtMdq3L9p&#x22;,&#x22;options&#x22;:{&#x22;limit&#x22;:10,&#x22;sortBy&#x22;:{&#x22;sortBy&#x22;:&#x22;created&#x22;,&#x22;sortDirection&#x22;:&#x22;desc&#x22;},&#x22;showCollectionMetadata&#x22;:true}}]" required>
  Positional parameters for <code>getAssetsByGroup</code>:

  <ul>
    <li><code>params\[]</code>: Type: object.</li>
  </ul>
</ParamField>

### Returns

<ResponseField name="result" type="object">
  The JSON-RPC result.

  <Expandable title="properties">
    <ResponseField name="assetList" type="object">
      <Expandable title="properties">
        <ResponseField name="total" type="integer" />

        <ResponseField name="limit" type="integer" />

        <ResponseField name="page" type="integer" />

        <ResponseField name="cursor" type="string" />

        <ResponseField name="items" type="array">
          <Expandable title="items">
            <ResponseField name="items[]" type="object">
              <Expandable title="properties">
                <ResponseField name="asset" type="object">
                  <Expandable title="properties">
                    <ResponseField name="interface" type="string" />

                    <ResponseField name="id" type="string" />

                    <ResponseField name="content" type="object">
                      <Expandable title="properties">
                        <ResponseField name="$schema" type="string" />

                        <ResponseField name="json_uri" type="string" />

                        <ResponseField name="files" type="array">
                          <Expandable title="items">
                            <ResponseField name="items[]" type="object">
                              <Expandable title="properties">
                                <ResponseField name="uri" type="string" />

                                <ResponseField name="mime" type="string" />

                                <ResponseField name="quality" type="object" />

                                <ResponseField name="contexts" type="array">
                                  <Expandable title="items">
                                    <ResponseField name="items[]" type="string" />
                                  </Expandable>
                                </ResponseField>
                              </Expandable>
                            </ResponseField>
                          </Expandable>
                        </ResponseField>

                        <ResponseField name="metadata" type="object" />
                      </Expandable>
                    </ResponseField>
                  </Expandable>
                </ResponseField>
              </Expandable>
            </ResponseField>
          </Expandable>
        </ResponseField>
      </Expandable>
    </ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```bash Curl theme={null}
  curl --request POST \
    --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=solana \
    --header 'content-type: application/json' \
    --data '{
      "id": 1,
      "jsonrpc": "2.0",
      "method": "getAssetsByGroup",
      "params": [
        {
          "groupKey": "collection",
          "groupValue": "J2ZfLdQsaZ3GCmbucJef3cPnPwGcgjDW1SSYtMdq3L9p",
          "options": {
            "limit": 10,
            "sortBy": {
              "sortBy": "created",
              "sortDirection": "desc"
            },
            "showCollectionMetadata": true
          }
        }
      ]
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json Success theme={null}
  {
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
      "assetList": {
        "total": 100,
        "limit": 10,
        "page": 1,
        "cursor": null,
        "items": [
          {
            "__truncated": true
          }
        ]
      }
    }
  }
  ```
</ResponseExample>
