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

# 显示选项

> 控制 OrbitFlare DAS API 响应中包含的内容：同质化代币、原生 SOL 余额、未验证合集、合集元数据、铭文和零余额。

## 概述

显示选项会改变 DAS 响应中包含的内容。请将它们放在 `options` 对象中传入，或使用 `displayOptions` 传入。所有选项的默认值均为 `false`。

```json theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getAssetsByOwner",
  "params": {
    "ownerAddress": "86xCnPeV69n6t3DnyGvkKobf9FdN2H9oiVDdaMpo2MMY",
    "options": {
      "showFungible": true,
      "showNativeBalance": true
    }
  }
}
```

## 选项

| 选项 | 作用 | 适用方法 |
| - | - | - |
| `showFungible` | 在 NFT 之外同时包含同质化代币，并附带 `token_info` 余额和美元价格。在 `searchAssets` 中请改用 `tokenType`。 | `getAssetsByOwner`、`getAssetsByGroup`、`getAssetsByCreator`、`getAssetsByAuthority` |
| `showNativeBalance` | 添加一个 `nativeBalance` 对象，包含所有者的 SOL 余额及其美元价值。 | `getAssetsByOwner`，以及带 `ownerAddress` 的 `searchAssets` |
| `showZeroBalance` | 包含余额为零的代币账户。 | `getTokenAccounts` |
| `showUnverifiedCollections` | 包含未经验证的合集分组，并标记为 `verified: false`。 | 资产方法 |
| `showCollectionMetadata` | 将合集的元数据作为 `collection_metadata` 添加到每个 `grouping` 条目中。 | 资产方法 |
| `showInscription` | 在 `inscription` 中包含代币铭文数据。 | 资产方法 |

### 原生余额

启用 `showNativeBalance` 后，列表响应会包含：

```json theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
"nativeBalance": {
  "lamports": 1328527472954,
  "price_per_sol": 101.5,
  "total_price": 134845.54
}
```

`total_price` 是以 SOL 计的余额乘以 `price_per_sol` 得到的美元金额。

## 为兼容性而接受的选项

以下选项会被接受，以免现有请求失败，但目前不会改变响应：`showGrandTotal`、`showRawData`、`showSystemMetadata` 和 `showClosedAccounts`。

## 不支持的选项

`requireFullIndex: true` 要求保证索引是完整的。API 目前还无法提供这一保证，因此会以 `-32602` 拒绝该请求，而不是在没有保证的情况下返回结果。`requireFullIndex: false` 会被接受。

未知的选项名称同样会以 `-32602` 被拒绝，这样拼写错误就不会悄无声息地改变你的结果。


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