Skip to the content.

ERC-721 Non-Fungible Token Standard, optional enumeration extension (IERC721EnumerableUpgradeable.sol)

View Source: @openzeppelin\contracts-upgradeable\token\ERC721\extensions\IERC721EnumerableUpgradeable.sol

↗ Extends: IERC721Upgradeable ↘ Derived Contracts: ERC721EnumerableUpgradeable

IERC721EnumerableUpgradeable

See https://eips.ethereum.org/EIPS/eip-721

Functions

totalSupply

Returns the total amount of tokens stored by the contract.

function totalSupply() external view
returns(uint256)

Arguments

| Name | Type | Description | | ————- |————- | —–|

tokenOfOwnerByIndex

Returns a token ID owned by owner at a given index of its token list. Use along with {balanceOf} to enumerate all of owner’s tokens.

function tokenOfOwnerByIndex(address owner, uint256 index) external view
returns(uint256)

Arguments

Name Type Description
owner address  
index uint256  

tokenByIndex

Returns a token ID at a given index of all the tokens stored by the contract. Use along with {totalSupply} to enumerate all tokens.

function tokenByIndex(uint256 index) external view
returns(uint256)

Arguments

Name Type Description
index uint256  

Contracts