Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
LABS
Glossary

Soulbound Token (SBT) Nesting

Soulbound Token (SBT) nesting is the practice of embedding non-transferable tokens within other NFTs or accounts to create immutable, composable digital identities.
Chainscore © 2026
definition
BLOCKCHAIN IDENTITY

What is Soulbound Token (SBT) Nesting?

Soulbound Token (SBT) Nesting is a mechanism for organizing non-transferable tokens into hierarchical, composable structures to represent complex on-chain identity and reputation.

Soulbound Token (SBT) Nesting is a design pattern where one non-transferable Soulbound Token (SBT) can contain or 'nest' other SBTs, creating a parent-child hierarchy. This structure allows a single, primary token—often representing a core identity or 'Soul'—to aggregate and organize a portfolio of credentials, achievements, and memberships. Unlike simple token collections in a wallet, nesting creates a formal, on-chain relationship, enabling the composite token to reflect a verifiable and evolving identity graph. The nested tokens remain bound to the same owner, preserving the soulbound property while enabling richer data organization.

The technical implementation of nesting typically involves a smart contract where the parent SBT holds references to the token identifiers of its child SBTs. This can be achieved through on-chain registries, merkle proofs, or specialized standards extending base SBT implementations like ERC-721 or ERC-1155. Key properties include immutable nesting (once a token is nested, it cannot be unnested) and composability, where a nested SBT can itself be a parent to other tokens. This creates a tree-like structure, allowing for complex representations of skills, project histories, or institutional affiliations within a unified framework.

Primary use cases for SBT nesting center on verifiable credentials and reputation systems. For example, a developer's primary 'Identity SBT' could nest a 'GitHub Contributor SBT,' which itself nests specific 'Repository Contributor SBTs.' A university diploma SBT could nest individual course completion SBTs. This enables granular, privacy-preserving proofs—one can prove they have a specific nested credential without revealing the entire parent structure. Nesting solves the 'token sprawl' problem for Souls, moving from a flat list of credentials to a contextualized and interpretable identity portfolio.

The concept introduces new design considerations, such as permissions (who can issue nested tokens?), revocation (how is a nested credential invalidated?), and visibility (which parts of the nest are publicly readable?). It also enables novel governance models, where voting power in a Decentralized Autonomous Organization (DAO) is derived from a nested set of reputation SBTs. Furthermore, nested structures can be used in sybil-resistance mechanisms, as forging a credible identity requires fabricating an entire, coherent tree of verifiable credentials rather than a single token.

SBT nesting is a foundational primitive for the Decentralized Society (DeSoc) vision, enabling portable, user-centric identity that mirrors real-world complexity. It allows Souls to curate and present multifaceted reputations across contexts—professional, social, financial—while maintaining user sovereignty over attestations. As the ecosystem matures, standards and tooling for nesting will be critical for interoperability, allowing protocols to programmatically interpret and trust the composite reputational graphs formed by nested SBTs.

how-it-works
MECHANISM

How Does SBT Nesting Work?

SBT nesting is a mechanism that allows one Soulbound Token (SBT) to contain or reference other SBTs, creating hierarchical and composite on-chain identity structures.

SBT nesting is a design pattern where a parent SBT acts as a container or aggregator for a set of child SBTs. This is typically implemented by storing the token identifiers (IDs) of the child SBTs within the metadata or on-chain data of the parent token. The parent SBT does not physically "hold" the child tokens—ownership remains with the original wallet—but it establishes a verifiable, immutable link. This creates a composite identity, where a single token can represent a complex portfolio of credentials, memberships, or achievements, all anchored to a soul (a wallet or decentralized identifier).

The primary technical implementation involves modifying the SBT's smart contract to support a nestedTokens array or a similar data structure. When a new child SBT is minted or deemed part of a collection, its contract can call a function on the parent SBT's contract to append its ID. Crucially, these relationships are non-transferable and permissioned, often requiring validation that the linking wallet owns both tokens. This ensures the nested structure accurately reflects the soul's verified attributes. Standards like ERC-6150 (Parent-Child NFTs) provide a blueprint for implementing such hierarchical relationships in a standardized way.

Nesting enables powerful use cases by organizing SBTs into logical groups. For example, a DAO Membership SBT could nest sub-tokens representing specific roles (e.g., Contributor, Governance Voter), committee assignments, and achievement badges earned within the DAO. An educational credential SBT for a degree could nest individual course completion SBTs. This structure allows for efficient verification; a verifier can check the parent token to instantly understand the scope of a soul's affiliations without querying dozens of individual token contracts, reducing on-chain lookup costs and complexity.

The nesting relationship introduces new dimensions to SBT composability and programmability. Smart contracts can be written to read the nested structure and execute logic based on the combined properties of the parent and its children. For instance, access to a gated service could require a parent SBT that nests at least three specific child credential SBTs. This moves beyond simple token-gating to conditional, multi-faceted verification. However, it also adds design complexity, requiring careful management of update permissions to prevent unauthorized nesting or spoofing of hierarchical relationships.

key-features
MECHANISMS & PROPERTIES

Key Features of SBT Nesting

SBT nesting is a mechanism where one non-transferable token (SBT) can own or contain other SBTs, creating hierarchical and composable on-chain identity structures.

01

Hierarchical Identity

Nesting creates a parent-child relationship between SBTs, allowing complex identity graphs to be built. A parent SBT (e.g., a 'DAO Membership' token) can hold child SBTs representing sub-credentials, roles, or achievements within that context. This mirrors real-world organizational structures and enables granular permissioning.

02

Composability & Aggregation

A nested SBT acts as an aggregator for its child tokens. This allows a single parent token to represent a complete, verifiable profile by bundling related credentials. For example, a 'Developer Profile' SBT could nest tokens for completed courses, code contributions, and skill certifications, creating a portable, aggregated reputation.

03

Access Control & Permissions

Ownership of a parent SBT can grant conditional access to the attributes or utilities of its nested children. Smart contracts can check for the presence of a specific nested SBT to gate actions. This enables systems like:

  • Role-based access within a DAO.
  • Progressive unlocking of features based on nested achievement tokens.
  • Delegated authority where a parent token manages permissions for its subtree.
04

Selective Disclosure

Users can prove possession of a specific nested credential without revealing their entire identity graph or the parent token's full contents. This is achieved through zero-knowledge proofs (ZKPs) or merkle proofs, allowing for privacy-preserving verification of specific attributes held within a nested structure.

05

Immutable Provenance & Audit Trail

The nesting relationship and the history of child tokens being added or removed are recorded on-chain. This creates a tamper-proof audit trail for credential issuance and lifecycle events. It allows anyone to verify the origin and sequence of how a composite identity was assembled, enhancing trust and transparency.

06

Modular Design & Upgradability

Nesting supports a modular identity system. Individual credentials (child SBTs) can be issued, revoked, or updated independently without needing to replace the entire identity (parent SBT). This allows for incremental reputation building and makes the system adaptable over time as a user's attributes evolve.

examples
SOULBOUND TOKEN (SBT) NESTING

Examples and Use Cases

Soulbound Token (SBT) nesting enables complex, hierarchical on-chain identity structures. These examples illustrate how nesting is applied to model real-world relationships and permissions.

01

Decentralized Reputation & Credit Scoring

A user's primary SBT can nest tokens representing verifiable credentials from various sources, creating a composite reputation score.

  • A DeFi credit score SBT could nest sub-tokens for on-chain payment history, KYC verification, and protocol-specific governance participation.
  • Lending protocols can programmatically assess the nested structure to determine creditworthiness and loan terms without exposing raw personal data.
02

Organizational & DAO Membership

Nesting models hierarchical membership within decentralized autonomous organizations (DAOs).

  • A core DAO member SBT can nest role-specific sub-tokens (e.g., Contributor, Steward, Treasurer).
  • Each nested token grants specific on-chain permissions, such as voting weight in certain sub-committees or access to multisig wallets. Revoking a role simply burns the nested sub-token, leaving the core membership intact.
03

Academic Credential & Skill Verification

Educational institutions or certification bodies can issue SBTs for degrees, which then nest tokens for individual courses or skills.

  • A Computer Science Degree SBT could nest sub-tokens for Cryptography 101, Smart Contract Security, and Distributed Systems.
  • This creates a portable, verifiable, and granular skill graph that employers or other educational platforms can query to understand a user's proven competencies.
04

Gaming & Metaverse Identity

A player's primary avatar or identity SBT can nest achievements, equipped items, and faction affiliations.

  • Key mechanics enabled:
    • Composability: A legendary sword (as a nested SBT) can be equipped to the avatar SBT, proving ownership and status.
    • Provenance: The nested history of an item's previous owners is immutably recorded.
    • Interoperability: Games can read specific nested tokens to grant in-game benefits or access.
05

Supply Chain Provenance

A product's master SBT can nest tokens from each step in its supply chain, creating an immutable lineage.

  • A Coffee Bag SBT could nest tokens from the farm (origin), fair-trade certifier, roaster, and shipper.
  • Consumers scan a QR code to view the entire nested provenance tree, verifying ethical sourcing and authenticity directly on-chain.
06

Legal Entity & Compliance Structures

Nesting can represent complex legal ownership and regulatory compliance on-chain.

  • A Legal Entity SBT for a DAO-Limited Liability Company (LLC) wrapper could nest sub-tokens representing its articles of organization, registered agent verification, and proof of tax status.
  • Regulators or partners can be granted permission to view specific nested tokens, enabling transparent compliance without exposing the entity's full internal structure.
technical-implementation
SOULBOUND TOKEN (SBT) NESTING

Technical Implementation

An exploration of the mechanisms and design patterns for creating hierarchical relationships between Soulbound Tokens, enabling complex on-chain identity and credential structures.

Soulbound Token (SBT) nesting is a technical design pattern where one SBT is programmatically linked to, or 'owned' by, another SBT, creating a parent-child relationship within a single blockchain account or 'Soul'. This structure allows for the creation of complex, hierarchical identity graphs where a primary identity token can hold subordinate tokens representing specific credentials, memberships, or attestations. The nesting relationship is enforced by the smart contract logic of the parent SBT, which typically holds a registry of the token IDs of its nested children, rather than relying on the native ERC-721 ownership model where tokens are held by Externally Owned Accounts (EOAs) or smart contract wallets.

Implementation typically involves a custom SBT smart contract that overrides or extends the standard transfer functions to enforce non-transferability while adding a mechanism, such as a mapping (mapping(uint256 => uint256[])), to record nested token IDs. When a new child SBT is minted or attested to the Soul, the contract logic calls a function on the parent SBT's contract to register the new token's ID. This creates a verifiable, on-chain link. Critical to this design is access control; only authorized issuers (or the parent token's own logic) should be permitted to create nested relationships to prevent spoofing. This is often managed through modular attester registries or via delegated signing schemes.

The primary use case for nesting is organizing verifiable credentials. For example, a university's root Diploma SBT could nest individual Course Completion SBTs. A DAO membership SBT might nest specific Role Badge SBTs for governance, development, or moderation. This creates a navigable and composable identity graph. From a technical standpoint, querying this structure requires indexers or smart contract view functions that can traverse the nesting mappings. Protocols like EIP-4973 (Account-bound Tokens) and EIP-5114 (Soulbound Badge) provide foundational standards, but nesting logic is often a bespoke layer built atop them to manage the hierarchical relationships and associated metadata.

ecosystem-usage
SOULBOUND TOKEN (SBT) NESTING

Ecosystem Usage and Protocols

Soulbound Token (SBT) nesting is a mechanism for creating hierarchical, composable on-chain identity structures by linking one SBT to another, enabling complex reputation systems and access control.

01

Core Mechanism

SBT nesting is the process where one SBT, acting as a parent token, holds or references one or more other SBTs as its children. This creates a non-transferable token graph where attributes, permissions, or reputation are inherited or composed. The parent SBT's metadata or smart contract logic defines the rules for which child SBTs it can hold and their significance.

02

Reputation & Credential Aggregation

A primary use case is aggregating verifiable credentials into a composite identity. For example:

  • A Professional Guild SBT could nest SBTs representing individual skill certifications, course completions, and employment verifications.
  • A DAO Membership SBT might nest sub-tokens proving participation in specific working groups, completed bounties, or voting history, creating a detailed, portable reputation profile.
03

Access Control & Gated Hierarchies

Nesting enables sophisticated, tiered access systems. A parent SBT can grant permissions based on the nested child tokens it possesses. For instance:

  • Access to a pro-tier DeFi protocol could require an SBT that nests a specific governance token stake and a KYC verification SBT.
  • Entry to a private virtual venue might be gated by an SBT that nests tokens proving attendance at prerequisite events, creating a verifiable journey.
04

Composable Sub-Identities & Roles

This allows a single wallet (soul) to manage multiple contextual identities under one umbrella. A user could have a "Main Identity SBT" that nests separate SBTs for their developer, artist, and governance participant roles. Each nested role-SBT can be used independently in specific ecosystems while remaining part of a verifiable, overarching identity structure, preventing identity fragmentation.

05

Implementation & Standards

While no single universal standard exists, implementations often use:

  • ERC-721 or ERC-1155 with custom logic for ownership and binding.
  • Registry Contracts that maintain a mapping of parent-to-child token relationships.
  • SBT-specific proposals like ERC-4973 (Account-bound Tokens) or ERC-5114 (Soulbound Badge) which provide foundational properties that can be extended for nesting logic.
06

Challenges & Considerations

Key design challenges include:

  • Revocation Logic: Defining how nested child SBTs (e.g., a revoked credential) affect the parent's status.
  • Graph Complexity: Managing and querying deeply nested token relationships can be computationally intensive.
  • Privacy: Hierarchical structures may expose more relationship data than intended; zero-knowledge proofs are being explored to verify nested properties without revealing all details.
security-considerations
SOULBOUND TOKEN (SBT) NESTING

Security and Design Considerations

Nesting Soulbound Tokens (SBTs) creates complex on-chain relationship graphs, introducing unique security and design challenges that differ from standard token models.

01

Access Control & Revocation

Nesting creates a permission hierarchy where a parent SBT's logic can govern access to its nested children. Designers must decide if revocation (burning) a parent token should:

  • Cascade destroy all nested tokens.
  • Orphan nested tokens, leaving them in a frozen or degraded state.
  • Transfer nested tokens to a fallback address.

Incorrect logic can lead to unintended permanent loss or unauthorized persistence of nested assets.

02

State Complexity & Gas Costs

Deeply nested SBT structures can lead to state explosion and high gas costs for operations that traverse the entire tree. Key considerations include:

  • Traversal Overhead: Verifying lineage or computing aggregate reputation may require multiple on-chain reads.
  • Update Propagation: Changing a root SBT's metadata may need to propagate changes down the chain, multiplying transaction costs.
  • Design for Shallow Trees: Most practical implementations limit nesting depth to 2-3 levels to manage cost and complexity.
03

Composability & External Integration

Nested SBTs must be designed to interact safely with external protocols (DeFi, DAOs, marketplaces). Risks include:

  • Re-entrancy in Parent Contracts: Logic that handles nested tokens during mint/burn must be secure against re-entrancy attacks.
  • Interface Standards: Lack of universal standards for nested SBTs (beyond ERC-721/1155) can cause integration failures.
  • Oracle Reliance: Systems that read nested SBT data for off-chain logic (e.g., credit scoring) depend on oracle security and correct state interpretation.
04

Privacy & Graph Analysis

The nested relationship graph is fully public on-chain, creating privacy trade-offs:

  • Identity Linkage: Nested structures can explicitly map relationships between wallets, DAOs, and credentials, potentially deanonymizing users.
  • Social Graph Exploitation: Malicious actors can analyze the public graph to target high-value accounts or exploit relationship-based trust models.
  • Selective Disclosure Solutions: Techniques like zero-knowledge proofs (ZKPs) or private state channels may be needed to prove relationships without revealing the entire graph.
05

Inheritance & Soul Recovery

Nesting is often proposed for digital inheritance, but introduces critical recovery challenges:

  • Key Loss Mitigation: A nested SBT representing a will must have a secure, time-delayed mechanism to transfer assets if the parent 'soul' is inactive.
  • Social Recovery Conflicts: If a parent SBT uses social recovery, guardians must be authorized to act on nested assets, requiring clear, attack-resistant governance.
  • Irreversible Mistakes: Errors in inheritance logic are potentially uncorrectable, permanently locking or misdirecting nested value.
06

Sybil Resistance & Graph Spam

Nesting can be exploited to create false reputation or authority through Sybil attacks. Mitigation strategies include:

  • Costly Nesting: Requiring a stake or proof-of-work to create a nested link.
  • Graph Validation: Implementing algorithms that discount reputation from newly created or low-stake sub-graphs.
  • Attestation Weighting: Designing systems where nested attestations from highly reputable parent souls carry more weight than those from unknown sources.
COMPARISON

SBT Nesting vs. Related Concepts

Distinguishing SBT nesting from other token composition and relationship mechanisms.

Feature / MechanismSBT NestingToken Composability (ERC-998)Token WrappingToken Metadata Reference

Core Relationship

Hierarchical parent-child ownership between SBTs

Hierarchical parent-child ownership of any token type

1:1 representation of an asset on another chain

Off-chain pointer or link within token metadata

Transferability of Child

Non-transferable (bound to parent SBT's soul)

Transferable (inherits parent's transfer rules)

Transferable (wrapped token is fungible/NFT)

Depends on the referencing token's rules

On-Chain State Link

Direct, immutable on-chain reference

Direct, mutable on-chain reference

Direct, mutable on-chain link via custodian contract

Indirect, mutable off-chain link (e.g., IPFS URI)

Primary Use Case

Representing composite, evolving identity or reputation

Creating bundled digital asset portfolios

Cross-chain liquidity and interoperability

Attaching descriptive data or external files

Soulbinding Enforcement

Inherent (all nested SBTs are non-transferable)

Not inherent (depends on child token's standard)

Not applicable

Not applicable

Standardization (Ethereum)

Proposed extension to ERC-5192 (minimal SBT)

ERC-998 (inactive/deprecated)

Chain-specific (e.g., wETH, stETH)

ERC-721/1155 metadata field

State Complexity

High (manages a tree/graph of SBTs)

High (manages a tree of arbitrary tokens)

Low (single mapping of original to wrapped asset)

Low (stores a URI string)

Example

A DAO membership SBT containing nested contribution badges

A CryptoKitty wearing a hat NFT and holding ERC-20 tokens

wBTC representing Bitcoin on Ethereum

An NFT with an image URL pointing to IPFS

SOULBOUND TOKEN (SBT) NESTING

Frequently Asked Questions (FAQ)

Soulbound Token (SBT) nesting is an advanced mechanism for representing hierarchical relationships and composite identities on-chain. These questions address its core concepts, technical implementation, and practical applications.

SBT nesting is a mechanism where one Soulbound Token (SBT) is programmatically linked as a child token within another parent SBT, creating a hierarchical, non-transferable data structure on-chain. It works by storing a reference (e.g., a token ID or address) of the child SBT within the metadata or state of the parent token, often enforced by a smart contract that validates the relationship and prevents unauthorized nesting or unnesting. This creates a verifiable graph of credentials, memberships, or achievements that are all bound to the same soul (cryptographic wallet).

ENQUIRY

Get In Touch
today.

Our experts will offer a free quote and a 30min call to discuss your project.

NDA Protected
24h Response
Directly to Engineering Team
10+
Protocols Shipped
$20M+
TVL Overall
NDA Protected Directly to Engineering Team