Understanding NFT standard ERC-998
ERC-998 is a token standard on the Ethereum blockchain that allows for the creation of complex tokens that can contain other tokens. This standard enables the creation of tokens with hierarchical ownership structures, where a token can contain other tokens that represent sub-assets.
ERC-998 tokens are identified by a unique ID and can contain a mixture of fungible tokens and NFTs. This makes it ideal for creating more complex assets, such as collections of ERC-721 tokens.
Here are a few examples of ERC-998 tokens:
- The Mokens project, which uses ERC-998 to create multi-token contracts (mokens) that can contain other tokens and assets
- The Ocean Blue project, which allows users to create and trade tokens representing seashells, each of which can contain pearls and other seashells as ERC-998 sub-tokens
Let’s go over an example of an ERC-998-based smart contract. In this example, we will create a Token721 contract that represents...