You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This implements an optional extension of {ERC721} defined in the EIP that adds enumerability of all the token ids in the contract as well as all token ids owned by each account.
Methods
approve
function approve(addressto, uint256tokenId) external nonpayable
See {IERC721-approve}.
Parameters
Name
Type
Description
to
address
undefined
tokenId
uint256
undefined
balanceOf
function balanceOf(addressowner) externalviewreturns (uint256)
See {IERC721-balanceOf}.
Parameters
Name
Type
Description
owner
address
undefined
Returns
Name
Type
Description
_0
uint256
undefined
getApproved
function getApproved(uint256tokenId) externalviewreturns (address)
See {IERC721-getApproved}.
Parameters
Name
Type
Description
tokenId
uint256
undefined
Returns
Name
Type
Description
_0
address
undefined
isApprovedForAll
function isApprovedForAll(addressowner, addressoperator) externalviewreturns (bool)
See {IERC721-isApprovedForAll}.
Parameters
Name
Type
Description
owner
address
undefined
operator
address
undefined
Returns
Name
Type
Description
_0
bool
undefined
name
function name() externalviewreturns (string)
See {IERC721Metadata-name}.
Returns
Name
Type
Description
_0
string
undefined
ownerOf
function ownerOf(uint256tokenId) externalviewreturns (address)
See {IERC721-ownerOf}.
Parameters
Name
Type
Description
tokenId
uint256
undefined
Returns
Name
Type
Description
_0
address
undefined
safeTransferFrom
function safeTransferFrom(addressfrom, addressto, uint256tokenId) external nonpayable
See {IERC721-safeTransferFrom}.
Parameters
Name
Type
Description
from
address
undefined
to
address
undefined
tokenId
uint256
undefined
safeTransferFrom
function safeTransferFrom(addressfrom, addressto, uint256tokenId, bytes_data) external nonpayable
See {IERC721-safeTransferFrom}.
Parameters
Name
Type
Description
from
address
undefined
to
address
undefined
tokenId
uint256
undefined
_data
bytes
undefined
setApprovalForAll
function setApprovalForAll(addressoperator, boolapproved) external nonpayable
See {IERC721-setApprovalForAll}.
Parameters
Name
Type
Description
operator
address
undefined
approved
bool
undefined
supportsInterface
function supportsInterface(bytes4interfaceId) externalviewreturns (bool)
See {IERC165-supportsInterface}.
Parameters
Name
Type
Description
interfaceId
bytes4
undefined
Returns
Name
Type
Description
_0
bool
undefined
symbol
function symbol() externalviewreturns (string)
See {IERC721Metadata-symbol}.
Returns
Name
Type
Description
_0
string
undefined
tokenByIndex
function tokenByIndex(uint256index) externalviewreturns (uint256)
See {IERC721Enumerable-tokenByIndex}.
Parameters
Name
Type
Description
index
uint256
undefined
Returns
Name
Type
Description
_0
uint256
undefined
tokenOfOwnerByIndex
function tokenOfOwnerByIndex(addressowner, uint256index) externalviewreturns (uint256)
See {IERC721Enumerable-tokenOfOwnerByIndex}.
Parameters
Name
Type
Description
owner
address
undefined
index
uint256
undefined
Returns
Name
Type
Description
_0
uint256
undefined
tokenURI
function tokenURI(uint256tokenId) externalviewreturns (string)
See {IERC721Metadata-tokenURI}.
Parameters
Name
Type
Description
tokenId
uint256
undefined
Returns
Name
Type
Description
_0
string
undefined
totalSupply
function totalSupply() externalviewreturns (uint256)
See {IERC721Enumerable-totalSupply}.
Returns
Name
Type
Description
_0
uint256
undefined
transferFrom
function transferFrom(addressfrom, addressto, uint256tokenId) external nonpayable