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

> OrbitFlare üzerinde DAS getAssetsByAuthority ile bir güncelleme yetkilisinin kontrol ettiği Solana varlıklarını listeleyin.

## Genel Bakış

`getAssetsByAuthority`, bir adresin `authorities` içinde (genellikle güncelleme yetkilisi olarak) yer aldığı varlıkları listeler. Projeler çoğunlukla tüm koleksiyonları tek bir yetkiliden mint eder; bu nedenle bu, bir projenin kontrol ettiği her şeyi listelemenin hızlı bir yoludur.

Bu yöntemin snake\_case takma adı yoktur. `getAssetsByAuthority` olarak çağırın.

## Parametreler

<ResponseField name="authorityAddress" type="string" required>
  Yetkili adresi (base-58).
</ResponseField>

<ResponseField name="page" type="number">
  1'den başlayan sayfa numarası. Bkz. [Sayfalama](/tr/das-api/pagination).
</ResponseField>

<ResponseField name="limit" type="number">
  Sayfa başına sonuç sayısı. Maksimum ve varsayılan değer 1.000.
</ResponseField>

<ResponseField name="cursor" type="string">
  Önceki bir yanıttan alınan imleç.
</ResponseField>

<ResponseField name="before" type="string">
  Kimliği bundan önce gelen varlıkları döndürür.
</ResponseField>

<ResponseField name="after" type="string">
  Kimliği bundan sonra gelen varlıkları döndürür.
</ResponseField>

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

<ResponseField name="options" type="object">
  [Görüntüleme seçenekleri](/tr/das-api/display-options): `showFungible`, `showUnverifiedCollections`, `showCollectionMetadata`, `showInscription`. `displayOptions` olarak da kabul edilir.
</ResponseField>

## Yanıt

`last_indexed_slot`, `total`, `limit`, `page` veya `cursor` ve `items` ([varlık nesneleri](/tr/das-api/asset-object)) içeren bir liste.

## Kod Örnekleri

### İstek

```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
  }
}'
```

### Yanıt

```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
}
```

Varlık nesnesi kısaltılmıştır. Tam bir örnek için [Varlık nesnesi](/tr/das-api/asset-object) sayfasına bakın.

### 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;
}
```

## Yaygın Hatalar

| Kod | Mesaj | Çözüm |
| - | - | - |
| -32601 | Method not found | camelCase adı olan `getAssetsByAuthority` kullanın |
| -32602 | Pubkey Validation Err: ... is invalid | Geçerli bir base-58 yetkili adresi iletin |
| -32602 | Pagination Error. Limit should not be greater than 1000. | 1.000 veya daha küçük bir `limit` kullanın |


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