# NFT 1.O 枚举函数

#### `balanceOfBatch(address[] memory accounts, uint256[] memory ids)`

接受长度相同的 `accounts` 和 `ids` 数组为参数，返回值为一个与输入参数等长的数组，`balanceOfBatch[i]` 的值为地址 `accounts[i]` 所持有的索引为 `ids[i]`的 NFT 数量。此函数适用于同质化场景，开发者可自行斟酌是否使用。

#### `isTokenOwner(address _owner, uint256 _id)`

地址 `_owner`是否持有索引为 `_id` 的 NFT。

#### `ownerOf(uint256 _id)`

返回索引为 `_id` 的 NFT 的持有人地址。

#### `tokenMetaData(uint256 => string)`

返回索引为 `_id` 的 NFT 的 metadata 参数，在 `uri` 函数中与 `baseUri` 结合，返回对应`_id`对应的 NFT metadata 文件地址。

#### `ownerOfAddress(uint256 => address[])`

返回索引为 `_id` 的 NFT 的持有人地址，被`ownerOf`调用，不适合直接作为 function 调用。

#### `tokensOf(address _owner)`

返回地址 \_owner 所持有的所有 NFT 的 token id 数组。

#### `totalSupply()`

返回该合约所发行的全部 NFT 的数量。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://conflux-technical-support.gitbook.io/conflux-nft-kai-fa-zhi-nan/he-yue-mei-ju-han-shu-shuo-ming/nft-1.o-mei-ju-han-shu.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
