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

# getAssetsByAuthority

> List the Solana assets controlled by an update authority with DAS getAssetsByAuthority on OrbitFlare.

## Overview

`getAssetsByAuthority` lists the assets where an address appears in `authorities`, usually as the update authority. Projects often mint every collection from one authority, so this is a quick way to list everything a project controls.

This method has no snake\_case alias. Call it as `getAssetsByAuthority`.

## Parameters

<ResponseField name="authorityAddress" type="string" required>
  The authority address (base-58).
</ResponseField>

<ResponseField name="page" type="number">
  Page number, starting at 1. See [Pagination](/das-api/pagination).
</ResponseField>

<ResponseField name="limit" type="number">
  Results per page. Maximum and default 1,000.
</ResponseField>

<ResponseField name="cursor" type="string">
  Cursor from a previous response.
</ResponseField>

<ResponseField name="before" type="string">
  Return assets with IDs before this one.
</ResponseField>

<ResponseField name="after" type="string">
  Return assets with IDs after this one.
</ResponseField>

<ResponseField name="sortBy" type="object">
  `{ "sortBy": "id" | "created" | "updated" | "recent_action" | "none", "sortDirection": "asc" | "desc" }`
</ResponseField>

<ResponseField name="options" type="object">
  [Display options](/das-api/display-options): `showFungible`, `showUnverifiedCollections`, `showCollectionMetadata`, `showInscription`. Also accepted as `displayOptions`.
</ResponseField>

## Response

A list with `last_indexed_slot`, `total`, `limit`, `page` or `cursor`, and `items` ([asset objects](/das-api/asset-object)).

## Code Examples

### Request

```bash theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
curl https://fra.rpc.orbitflare.com?api_key=YOUR-API-KEY -X POST -H "Content-Type: application/json" -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getAssetsByAuthority",
  "params": {
    "authorityAddress": "2RtGg6fsFiiF1EQzHqbd66AhW7R5bWeQGpTbv2UMkCdW",
    "page": 1,
    "limit": 1
  }
}'
```

### Response

```json theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
{
  "jsonrpc": "2.0",
  "result": {
    "last_indexed_slot": 457714578,
    "total": 1,
    "limit": 1,
    "page": 1,
    "items": [
      {
        "interface": "ProgrammableNFT",
        "id": "JEGruwYE13mhX2wi2MGrPmeLiVyZtbBptmVy9vG3pXRC",
        "content": {
          "metadata": { "name": "Mad Lads #6867", "symbol": "MAD" }
        },
        "authorities": [
          { "address": "2RtGg6fsFiiF1EQzHqbd66AhW7R5bWeQGpTbv2UMkCdW", "scopes": ["full"] }
        ]
      }
    ]
  },
  "id": 1
}
```

The asset object is shortened. See [Asset object](/das-api/asset-object) for a full example.

### TypeScript

```typescript theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
const RPC_URL = 'https://fra.rpc.orbitflare.com?api_key=YOUR-API-KEY';

async function getAssetsByAuthority(authority: string, page = 1) {
  const response = await fetch(RPC_URL, {
    method: 'POST',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify({
      jsonrpc: '2.0',
      id: 1,
      method: 'getAssetsByAuthority',
      params: { authorityAddress: authority, page, limit: 1000 },
    }),
  });
  const { result, error } = await response.json();
  if (error) throw new Error(error.message);
  return result.items;
}
```

## Common Errors

| Code | Message | Solution |
| - | - | - |
| -32601 | Method not found | Use the camelCase name `getAssetsByAuthority` |
| -32602 | Pubkey Validation Err: ... is invalid | Pass a valid base-58 authority address |
| -32602 | Pagination Error. Limit should not be greater than 1000. | Use a `limit` of 1,000 or less |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.