> For the complete documentation index, see [llms.txt](https://conflux-technical-support.gitbook.io/conflux-nft-kai-fa-zhi-nan/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](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).

# 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 的数量。
