Skip to main content

ERC721NFTCollection

ERC721NFTCollection​

The ERC721 contract for a L2 collection of ISC NFTs, as defined in IRC27. Implements the ERC721 standard and extends the ERC721NFTs contract. For more information about IRC27, refer to: https://github.com/iotaledger/tips/blob/main/tips/TIP-0027/tip-0027.md

_balanceOf​

function _balanceOf(struct ISCAgentID owner) internal view virtual returns (uint256)

Returns the balance of the specified owner.

Parameters​

NameTypeDescription
ownerstruct ISCAgentIDThe address to query the balance of.

Return Values​

NameTypeDescription
[0]uint256The balance of the specified owner.

collectionId​

function collectionId() external view virtual returns (IotaObjectID)

Returns the ID of the collection.

Return Values​

NameTypeDescription
[0]IotaObjectIDThe ID of the collection.

name​

function name() external view virtual returns (string)

Returns the name of the collection.

Return Values​

NameTypeDescription
[0]stringThe name of the collection.