Are all NFT's created equal in terms of a contract template? How does a NFT look like on the ethereum blockchain? Is it basically a ERC-20 token but with only 1 supply? What are some examples of this?
-
it is a standard but anyone can deviate from the standard if he wants to. And many do.– NulikCommented Jul 24, 2021 at 17:35
-
I wouldn't say "anyone can deviate from the standard". The standard dictates certain function signatures, for example, which must exist. But implementation can be whatever and can add extra functionality– Lauri PeltonenCommented Jul 26, 2021 at 11:00
1 Answer
No they are not ERC20. Also, they are not ERC20 compatible. They have similar functionalities, but a bit different - plus some extra stuff.
It's actually a bit tricky to find a full flat implementation of ERC721, since it's always used in a modular way: various contracts (and interfaces) are inherited which combined make the full functionality. The most famous reference implementation is probably from OpenZeppelin: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/ERC721.sol
Not all ERC721 contracts are equal. All of them have to implement the minimum standard functionality, but many of them have also some extra functionality for making things easier.
-
any examples of how this would look like on etherscan? Commented Jul 25, 2021 at 15:10
-