ERC721A
Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including the Metadata extension. Built to optimize for lower gas during batch mints. Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). Assumes that an owner cannot have more than 264 - 1 (max value of uint64) of supply. Assumes that the maximum token id cannot exceed 2256 - 1 (max value of uint256).
Methods
approve
See {IERC721-approve}.
Parameters
to
address
undefined
tokenId
uint256
undefined
balanceOf
See {IERC721-balanceOf}.
Parameters
owner
address
undefined
Returns
_0
uint256
undefined
getApproved
See {IERC721-getApproved}.
Parameters
tokenId
uint256
undefined
Returns
_0
address
undefined
isApprovedForAll
See {IERC721-isApprovedForAll}.
Parameters
owner
address
undefined
operator
address
undefined
Returns
_0
bool
undefined
name
See {IERC721Metadata-name}.
Returns
_0
string
undefined
ownerOf
See {IERC721-ownerOf}.
Parameters
tokenId
uint256
undefined
Returns
_0
address
undefined
safeTransferFrom
See {IERC721-safeTransferFrom}.
Parameters
from
address
undefined
to
address
undefined
tokenId
uint256
undefined
safeTransferFrom
See {IERC721-safeTransferFrom}.
Parameters
from
address
undefined
to
address
undefined
tokenId
uint256
undefined
_data
bytes
undefined
setApprovalForAll
See {IERC721-setApprovalForAll}.
Parameters
operator
address
undefined
approved
bool
undefined
supportsInterface
See {IERC165-supportsInterface}.
Parameters
interfaceId
bytes4
undefined
Returns
_0
bool
undefined
symbol
See {IERC721Metadata-symbol}.
Returns
_0
string
undefined
tokenURI
See {IERC721Metadata-tokenURI}.
Parameters
tokenId
uint256
undefined
Returns
_0
string
undefined
totalSupply
Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens.
Returns
_0
uint256
undefined
transferFrom
See {IERC721-transferFrom}.
Parameters
from
address
undefined
to
address
undefined
tokenId
uint256
undefined
Events
Approval
Parameters
owner indexed
address
undefined
approved indexed
address
undefined
tokenId indexed
uint256
undefined
ApprovalForAll
Parameters
owner indexed
address
undefined
operator indexed
address
undefined
approved
bool
undefined
Transfer
Parameters
from indexed
address
undefined
to indexed
address
undefined
tokenId indexed
uint256
undefined
Errors
ApprovalCallerNotOwnerNorApproved
The caller must own the token or be an approved operator.
ApprovalQueryForNonexistentToken
The token does not exist.
ApprovalToCurrentOwner
The caller cannot approve to the current owner.
ApproveToCaller
The caller cannot approve to their own address.
BalanceQueryForZeroAddress
Cannot query the balance for the zero address.
MintToZeroAddress
Cannot mint to the zero address.
MintZeroQuantity
The quantity of tokens minted must be more than zero.
OwnerQueryForNonexistentToken
The token does not exist.
TransferCallerNotOwnerNorApproved
The caller must own the token or be an approved operator.
TransferFromIncorrectOwner
The token must be owned by from
.
TransferToNonERC721ReceiverImplementer
Cannot safely transfer to a contract that does not implement the ERC721Receiver interface.
TransferToZeroAddress
Cannot transfer to the zero address.
URIQueryForNonexistentToken
The token does not exist.
Last updated