Docs

ERC721

import "@thirdweb-dev/contracts/eip/ERC721A.sol";

ERC721 is the standard for representing NFTs (non-fungible tokens).

We recommend using the optimized ERC721A standard for integrating NFT functionality into your smart contract.

View on GitHub

Usage

This is an example smart contract demonstrating how to inherit from this extension and override the functions to add (optional) custom functionality.

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@thirdweb-dev/contracts/eip/ERC721A.sol";
contract Contract is ERC721A {
constructor(
string memory _name,
string memory _symbol
)
ERC721A(
_name,
_symbol
)
{}
}

Base Contracts Implementing This Extension