Private ERC721

The Private ERC721 is an abstract implementation of the ERC721 Non-Fungible Token (NFT) Standard. It includes essential features of the standard, such as token ownership, approval, transfers, and safe transfers. This contract implements key components of the ERC721 standard while maintaining support for token metadata, but without fully implementing the metadata extension.

Core

Usage

// SPDX-License-Identifier: MIT

pragma solidity 0.8.19;

import "@coti-io/coti-contracts/contracts/token/PrivateERC721/PrivateERC721.sol";

contract MyNFT is PrivateERC721 {
    constructor() PrivateERC721("Private NFT", "PNFT") {}
}

Functions

constructor(string memory name_, string memory symbol_)
function supportsInterface(bytes4 interfaceId) view returns (bool)
function balanceOf(address owner) view returns (uint256)
function ownerOf(uint256 tokenId) view returns (address)

Events

Errors

Extensions

PrivateERC721URIStorage

Usage

Functions

Errors

Last updated

Was this helpful?