ERC-998 is an Ethereum token standard, formally known as the Composable Non-Fungible Token Standard, that allows a single non-fungible token (NFT) to own and manage other NFTs and fungible tokens (like ERC-20s). This creates a parent-child relationship, where the parent token becomes a composable or bundled asset, effectively a container for a portfolio of other assets. The standard's primary innovation is enabling atomic, single-transaction transfers of entire hierarchies, simplifying complex ownership structures on-chain.
ERC-998
What is ERC-998?
An Ethereum token standard that enables NFTs to own other NFTs and tokens, creating hierarchical, composable digital assets.
The architecture introduces two main implementations: ERC-998ERC721 for NFTs that own other ERC-721 tokens, and ERC-998ERC20 for NFTs that own ERC-20 tokens. A composable token acts as a smart contract wallet for its owned assets, with ownership rights embedded directly into the parent token's state. This allows for novel use cases such as a character in a game (an NFT) owning its inventory of items (other NFTs) and currency (ERC-20 tokens), where trading the character transfers its entire kit in one action.
While a powerful concept for representing complex digital objects, ERC-998 has seen limited mainstream adoption since its proposal. Its complexity and the subsequent rise of alternative composability patterns, like using ERC-1155 for batch operations or relying on external registry contracts, have limited its implementation. However, it remains a foundational concept in the evolution of NFT utility, demonstrating the potential for nested ownership and asset portability within the Ethereum ecosystem.
Etymology and Origin
The ERC-998 standard, also known as the Composable Non-Fungible Token (CNFT) standard, represents a pivotal but ultimately superseded experiment in Ethereum's evolution toward more complex digital asset structures.
The ERC-998 Composable Non-Fungible Token (CNFT) standard was an Ethereum Improvement Proposal introduced to solve a specific composability problem: enabling a single non-fungible token (NFT) to own other NFTs and/or fungible tokens (ERC-20s). This created a hierarchy or "nesting" of assets, where a parent token, like a virtual real estate parcel, could intrinsically own child tokens representing furniture, artwork, or in-game items. The proposal, authored by Matt Lockyer, was first discussed in early 2018, emerging from the community's need to model complex ownership relationships that simple, standalone ERC-721 tokens could not represent.
The technical origin of ERC-998 lay in extending the interfaces of existing standards. It defined a set of functions that allowed a compliant contract to manage the ownership and transfer of an entire hierarchy of assets in a single transaction. This was a significant conceptual leap, as it moved beyond tokens as isolated collectibles toward tokens as composable containers or inventories. The standard's architecture aimed to make these composite assets tradable as a single unit, simplifying user experience and enabling novel applications in gaming (characters with equipped items), virtual worlds, and complex financial instruments.
Despite its innovative premise, ERC-998 faced significant adoption hurdles. Its complexity led to challenging implementation and security considerations, as managing nested ownership added layers of logic to smart contracts. Furthermore, the rise of alternative solutions, particularly the ERC-1155 Multi Token Standard, offered a more gas-efficient and flexible model for managing fungible and non-fungible assets within a single contract. Consequently, ERC-998 is now largely considered a historical precursor rather than a widely adopted standard. Its core idea of composability, however, lives on and has profoundly influenced the design of subsequent token standards and the broader conceptual framework for digital asset interoperability on Ethereum and other blockchains.
Key Features
ERC-998 is an experimental Ethereum token standard that enables composable NFTs, allowing a single token to own and manage other tokens, including other NFTs (ERC-721) and fungible tokens (ERC-20).
Composability & Nesting
The core feature is token composability. An ERC-998 token, often called a Composable NFT, can own other assets. This creates hierarchical structures where a parent NFT (e.g., a virtual character) can own child assets (e.g., a sword NFT and potion tokens). Ownership of the parent transfers all nested assets in a single transaction.
Two Implementation Models
The standard proposed two architectural patterns:
- Bottom-Up Composition: Child tokens hold a reference to their parent contract. The parent manages a list of owned children.
- Top-Down Composition: The parent token contract holds the child tokens directly in its own balance, acting as a custodian. This model simplifies transfer logic but requires more complex contract design.
Atomic Bundled Transfers
A major advantage is atomic transfers. When a user transfers a parent Composable NFT, all its nested child tokens are transferred simultaneously in the same transaction. This eliminates the risk and gas cost of multiple separate transfers, ensuring the bundle of assets is never broken apart accidentally.
Relationship to ERC-1155
ERC-1155, the Multi Token Standard, is often seen as a successor that addressed similar goals more elegantly. While ERC-998 focuses on ownership hierarchies, ERC-1155 enables a single contract to manage multiple fungible and non-fungible token types, offering efficient batch operations. ERC-1155 gained wider adoption, making ERC-998 largely experimental.
Use Cases & Applications
Designed for complex digital asset assemblies:
- Gaming: A character NFT owning inventory items, land, and currency.
- Virtual Real Estate: A parcel of land containing building NFTs and decorative item NFTs.
- Digital Collectibles: A "collection album" NFT that holds a complete set of individual card NFTs.
Status & Adoption
ERC-998 remains an experimental draft (ERC-998d) and never reached final status as an official Ethereum standard. Its complexity and the subsequent rise of the more efficient ERC-1155 standard limited its adoption. It serves as an important conceptual precursor for token composability on Ethereum.
How ERC-998 Works
ERC-998 is an Ethereum token standard that enables the creation of composable NFTs, allowing a single token to own and manage other tokens, including other NFTs and fungible tokens, forming a hierarchical asset structure.
The ERC-998 Composable Non-Fungible Token standard extends the functionality of ERC-721 and ERC-1155 by introducing a parent-child ownership model. A parent ERC-998 token, often called a composable or composite NFT, acts as a container that can hold an entire portfolio of assets. This is achieved by storing the ownership records of the child tokens within the parent token's smart contract. When the parent NFT is transferred, all its nested assets are transferred atomically in the same transaction, ensuring the bundle remains intact.
Implementation typically follows one of two architectural patterns: the delegated ownership model or the registry-based model. In the delegated model, the child token's contract delegates control to the parent contract, which manages ownership on its behalf. The registry model uses a central mapping contract to track which parent owns which child tokens. Both methods allow for complex operations, such as transferring a subset of child assets or dissolving the composite to retrieve individual tokens, governed by the logic encoded in the parent's smart contract.
A primary technical challenge ERC-998 addresses is atomic composability. Without it, transferring a collection of related assets requires multiple separate transactions, which is inefficient and risks partial failure (e.g., only some items transfer). By bundling assets under one parent token, ERC-998 guarantees that all related transfers succeed or fail together. This is critical for representing complex digital objects like a character in a game—where the character (parent NFT) owns its inventory (child NFTs for weapons, armor) and currency (child ERC-20 tokens)—as a single, tradable entity.
While innovative, ERC-998 is not widely adopted as a formal Ethereum standard and has been largely superseded by more flexible paradigms. Its complexity introduced significant gas costs and security considerations for contract design. Modern development often achieves similar composability through alternative methods like ERC-1155 for batch operations or by using Soulbound Tokens (SBTs) and account abstraction to create logical groupings without modifying core ownership structures. However, ERC-998 remains a foundational concept in the evolution of ownable, hierarchical digital assets on the blockchain.
ERC-998: Composable Non-Fungible Token Standard
A deep dive into the Ethereum standard designed to create hierarchical, multi-asset NFTs.
The ERC-998 Composable Non-Fungible Token (CNFT) standard is an extension to ERC-721 and ERC-1155 that enables a single non-fungible token (NFT) to own and manage other tokens, including both other NFTs (ERC-721) and fungible tokens (ERC-20). This creates a parent-child relationship, allowing for the formation of complex, nested digital assets where ownership of the parent token automatically confers ownership of its entire hierarchy of child assets. For example, a character NFT in a game could own its own inventory of weapon NFTs and a wallet of in-game currency tokens, all bundled into a single, transferable entity.
The primary technical mechanism enabling this is the composability of ownership. An ERC-998 token contract maintains an internal ledger of the child tokens it possesses. When the parent token is transferred to a new owner via a standard transferFrom function, the contract logic automatically transfers all associated child assets in the same transaction. This atomic bundling eliminates the need for multiple, error-prone separate transfers and ensures the integrity of the composite asset. The standard defines functions like getChild and transferChild to manage the hierarchy.
Practical applications are significant in gaming, decentralized finance (DeFi), and digital identity. A composable metaverse avatar could own its wearables, land parcels, and achievement badges. In DeFi, a real-estate NFT could bundle ownership of the property deed with rental income streams (ERC-20 tokens) and insurance policies. The standard aimed to solve the problem of fractured asset ownership, but its complexity and high gas costs led to limited mainstream adoption, with alternative solutions like ERC-6551 (Token Bound Accounts) gaining more traction for similar use cases by leveraging smart contract wallets instead of monolithic token contracts.
Examples and Use Cases
While ERC-998 is a proposed standard for composable NFTs, its experimental nature means real-world applications are limited. These examples illustrate the potential use cases it was designed to enable.
Gaming Avatars & Inventory
An ERC-998 token could represent a character avatar, which itself owns other NFTs like weapons, armor, and skins (as ERC-721 or ERC-1155 tokens). This creates a single, transferable bundle.
- Single Transaction: Transfer the entire character and its equipped items in one go.
- Hierarchical Ownership: The game logic can easily verify what items a character possesses by checking the parent token's owned assets.
Real Estate Parcels
A virtual land plot (an NFT) could own the buildings, decorative items, and access passes deployed on it. This structure mirrors real-world property law.
- Bundle Management: Selling the land automatically includes all structures on it.
- Composability: Developers can build applications that interact with the entire property bundle through a single contract address.
NFT Collections & Sets
A "complete collection" NFT could own the individual pieces of a generative art series or trading card set. This enables new financial and display models.
- Fractional Ownership: Ownership of the master collection NFT could be fractionalized, giving holders exposure to the entire set.
- Provenance: The collection token provides a verifiable history of completeness.
DAO Membership Kits
A membership NFT for a Decentralized Autonomous Organization (DAO) could own a bundle of related assets and permissions.
- Integrated Assets: The token might hold governance tokens, a unique identity badge, and a vesting contract for rewards.
- Streamlined Onboarding: New members receive a complete operational kit in a single asset.
The Technical Challenge: Why It's Not Widely Adopted
Despite its promise, ERC-998 faced significant hurdles that limited adoption.
- Complex Implementation: Managing nested ownership and transfers requires complex, gas-intensive contract logic.
- Standardization Gap: The ecosystem largely settled on a simpler pattern: using ERC-1155 for multi-asset contracts or tracking ownership off-chain, then using ERC-721 to represent the bundle.
Ecosystem Status and Adoption
ERC-998 is an experimental Ethereum token standard that enables the creation of composable tokens, allowing one non-fungible token (NFT) to own other tokens, including other NFTs and fungible tokens (ERC-20).
Core Concept: Composable NFTs
ERC-998 defines a composable token (or composability) standard. It allows a single parent Non-Fungible Token (NFT) to own and manage a portfolio of other assets. This creates a hierarchical structure where a single token, like a character in a game, can own its equipment (other NFTs) and currency (ERC-20 tokens) as a single, transferable bundle.
Technical Implementation
The standard works by extending the ERC-721 interface. It adds functions to track ownership of child tokens and manage their transfer logic. Key mechanisms include:
- Ownership Registry: The parent NFT contract maintains a ledger of its child tokens.
- Atomic Transfers: The entire hierarchy (parent and all children) can be transferred in a single transaction, preventing asset fragmentation.
- Permission System: Defines rules for how child assets can be added or removed.
Primary Use Cases
ERC-998 was designed for complex digital asset representations, particularly in gaming and virtual worlds.
- Gaming Avatars: A character NFT (parent) owns its unique skins, weapons, and in-game currency.
- Virtual Real Estate: A land parcel NFT contains building NFTs, decorative item NFTs, and a treasury of tokens.
- Digital Collectible Sets: A "master collection" NFT that bundles individual collectible cards or artworks.
Adoption & Current Status
Despite its innovative concept, ERC-998 saw limited mainstream adoption. It was proposed as an Ethereum Improvement Proposal (EIP) but never reached final status. Its complexity and high gas costs for managing nested ownership led developers to favor alternative patterns, such as using ERC-1155 for bundle-like behavior or relying on external registries and escrow contracts to link assets.
Legacy & Influence
ERC-998's core idea of composability remains highly influential. It demonstrated the need for tokens to own other tokens, a concept now fundamental to decentralized finance (DeFi) and gaming. While the specific standard is not widely used, its principles live on in:
- ERC-1155 Multi-Token Standard: Allows for semi-fungible bundles.
- ERC-6551 (Token Bound Accounts): A more recent standard that gives an NFT its own smart contract wallet, a more flexible approach to asset ownership.
Key Challenges
Several technical and practical hurdles limited ERC-998's adoption:
- Gas Inefficiency: Managing nested ownership on-chain was computationally expensive.
- Standard Complexity: The implementation was difficult for developers to audit and integrate.
- Ecosystem Fragmentation: Wallets and marketplaces lacked native support for displaying or interacting with composable token hierarchies.
- Emergence of Alternatives: Newer, more gas-efficient standards like ERC-1155 and account abstraction models offered simpler solutions.
Comparison: ERC-998 vs. Related Standards
A technical comparison of the ERC-998 Composable Non-Fungible Token standard against other common approaches for representing asset hierarchies on Ethereum.
| Feature / Metric | ERC-998 (Composable NFT) | Nested ERC-1155 | Separate Ownership & Mapping |
|---|---|---|---|
Core Concept | Single token owns other tokens (NFTs & FTs) | Bundle represented as a single ERC-1155 token | Parent NFT and child assets held separately, linked via registry |
Atomic Composition/Decomposition | |||
Single Owner for Entire Bundle | |||
Gas Efficiency for Bundle Transfer | High (single transaction) | High (single transaction) | Low (multiple transactions) |
Standardization & Interoperability | Proposal (not finalized) | Widely adopted (EIP-1155) | Custom implementation |
Querying Child Assets | Direct via parent contract | Internal to bundle token logic | External registry call |
Supports Mixed Fungible/Non-Fungible Children | |||
Implementation Complexity | High | Medium | Low to Medium |
Security and Technical Considerations
ERC-998 is an experimental token standard for creating composable NFTs that can own other ERC-20 and ERC-721 tokens. This section details the critical security patterns and technical complexities involved in its implementation.
Ownership Hierarchy & State Management
ERC-998 introduces a parent-child ownership model where a composable NFT acts as a container. The primary security challenge is maintaining a consistent and verifiable state across the entire ownership tree. This requires:
- Atomic composability to prevent partial transfers.
- Precise tracking of nested ownership to avoid double-spending or loss of child assets.
- Complex logic for updating the root owner when any child token is transferred independently.
Inheritance of Security Properties
A composable NFT's security is only as strong as the weakest token in its hierarchy. Key considerations include:
- Proxy risk: If a child token's contract has a vulnerability (e.g., a reentrancy bug), it can compromise the entire composable asset.
- Approval management: Separate approval systems for the parent and each child token create a larger attack surface. Users must audit the security of every nested contract.
Gas Optimization & Execution Complexity
Operations on ERC-998 tokens are inherently gas-intensive due to deep state reads and writes. Technical hurdles include:
- High gas costs for transferring a composable NFT, which must recursively validate and update ownership for all children.
- Potential for out-of-gas errors during complex transfers if the call stack depth or gas limits are exceeded.
- This complexity often makes on-chain composability impractical for large collections, pushing implementations toward off-chain registries.
Interface Compliance & Standardization
As an unofficial, experimental standard (ERC-998 is not final), interoperability is a major concern.
- Lack of a single, universally adopted interface leads to fragmentation.
- Wallets and marketplaces may not recognize or properly display nested assets.
- This has led the ecosystem to favor alternative patterns like ERC-6551 (Token Bound Accounts), which uses a more modular, account-based model for NFT composability.
Common Misconceptions
ERC-998, or the Composable Non-Fungible Token Standard, is often misunderstood. This section clarifies its purpose, technical limitations, and its relationship to the broader NFT ecosystem.
ERC-998 is a proposed Ethereum standard for Composable Non-Fungible Tokens (CNFTs) that enables an NFT to own other NFTs and fungible tokens (ERC-20), creating a hierarchical ownership structure. It works by defining a parent token that acts as a container, with functions to attach, detach, and transfer its child assets as a single bundle. For example, a character NFT (parent) could own weapon and armor NFTs (children). The standard aimed to simplify complex asset management by allowing the entire hierarchy to be transferred in a single transaction, but it was never formally finalized or widely adopted by the Ethereum community.
Key Mechanisms:
- Parent-Child Relationship: The parent token contract holds the ownership records of child tokens.
- Atomic Transfers: All nested assets can be transferred together.
- Two Implementations: ERC-998ERC721 (for NFT children) and ERC-998ERC20 (for fungible token children).
Frequently Asked Questions
ERC-998 is a proposed standard for composable non-fungible tokens (NFTs) that can own other assets. These FAQs address its purpose, mechanics, and current status.
ERC-998 is a proposed Ethereum standard for Composable NFTs, enabling a single non-fungible token to own and manage other tokens, including both ERC-20 and ERC-721 tokens, as a cohesive bundle. It works by extending the ERC-721 standard with functions that allow an NFT to act as a parent token for a hierarchy of child tokens. The standard defines interfaces for transferring the entire bundle atomically, querying owned child tokens, and managing permissions. This creates complex, nested digital assets where ownership of the parent NFT confers ownership of all its underlying assets, streamlining transactions and on-chain representation of composite items like characters with equipment or real estate with furnishings.
Get In Touch
today.
Our experts will offer a free quote and a 30min call to discuss your project.