Skip to main content

IERC721Enumerable

Git Source

Inherits: IERC721

See https://eips.ethereum.org/EIPS/eip-721 Note: the ERC-165 identifier for this interface is 0x780e9d63.

Functions

totalSupply

Count NFTs tracked by this contract

function totalSupply() external view returns (uint256);

Returns

NameTypeDescription
<none>uint256A count of valid NFTs tracked by this contract, where each one of them has an assigned and queryable owner not equal to the zero address

tokenByIndex

Enumerate valid NFTs

Throws if _index >= totalSupply().

function tokenByIndex(uint256 _index) external view returns (uint256);

Parameters

NameTypeDescription
_indexuint256A counter less than totalSupply()

Returns

NameTypeDescription
<none>uint256The token identifier for the _indexth NFT, (sort order not specified)

tokenOfOwnerByIndex

Enumerate NFTs assigned to an owner

Throws if _index >= balanceOf(_owner) or if _owner is the zero address, representing invalid NFTs.

function tokenOfOwnerByIndex(address _owner, uint256 _index) external view returns (uint256);

Parameters

NameTypeDescription
_owneraddressAn address where we are interested in NFTs owned by them
_indexuint256A counter less than balanceOf(_owner)

Returns

NameTypeDescription
<none>uint256The token identifier for the _indexth NFT assigned to _owner, (sort order not specified)