ERC721 is a standard for non-fungible tokens, meaning that each token is verifiably unique from all other tokens, and has become the dominant standard for on-chain NFTs. All ERC721s have a unique tokenId that differentiates them from every other token in the set.
An ERC721-compatible token must implement all the following functions and events:
We recommend using OpenZeppelin's popular and trusted ERC721 implementation in your project. The source code can be found at ERC721.sol. You can use OpenZeppelin's ERC721 implementation in your project through the following steps:
1. Install the OpenZeppelin library in your project by running the command:
npm install @openzeppelin/contracts
2. Once installed, you can use the ERC721 implementation in the library by importing it like this: