0

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?

2
  • it is a standard but anyone can deviate from the standard if he wants to. And many do.
    – Nulik
    Commented 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 Commented Jul 26, 2021 at 11:00

1 Answer 1

1

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.

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.