Introduction

Hi, I'm cardene, a software engineer and technical writer focused on blockchain and AI.

I've also authored Japanese technical books on specification-driven development with LLMs and decentralized application (DApp) development.

I also build and publish a variety of tools, libraries, and open-source projects.

ERC-7510 proposes a way to store and query hierarchical relationships spanning multiple NFT collections.

This article translates, summarizes, and expands on the following proposal as discussed in the original December 2025 article.

I also cover other EIPs, BIPs, SLIPs, CAIPs, ENSIPs, RFCs, and ACPs.

Overview

ERC-7510 extends ERC-721 to manage hierarchical relationships between NFTs in different contracts. A hierarchy here is a structure in which one NFT identifies another as its parent. For instance, an NFT representing a derivative work can explicitly record its connection to the original work.

For more on ERC-721, see the following article.

ERC-721 Explained from First Principles

ERC-7510 provides an interface for retrieving these relationships. Applications can query which NFTs are parents of a given NFT and whether a parent-child relationship exists between two specified NFTs.

This mechanism establishes structured connections between different collections, making relationships between NFTs transparent and traceable.

Motivation

NFTs are increasingly used to create derivative works from existing works. For example, an artist might create a three-dimensional model from a two-dimensional art NFT and issue it as a new NFT. In this situation, there is a need to record the relationship between the new NFT and the original one.

An NFT can also be derived from multiple parent NFTs. Consider an NFT representing a film that features several NFT characters. Each character NFT is a parent, and the film NFT is their child.

The existing ERC-6150 standard provides a mechanism for establishing NFT hierarchies, but it applies only to NFTs within the same contract. In practice, collections of derivative works are often deployed as separate contracts, which makes them difficult to represent using the existing specification.

For more on ERC-6150, see the following article.

ERC-6150: Giving NFTs a Hierarchy Like a Linux Filesystem

Furthermore, multiple parent NFTs are increasingly common in use cases such as intellectual property licensing, but ERC-6150 does not support assigning several parents to a single NFT. An extension that can represent multiple parent-child relationships across contracts is needed to address this limitation.

Specification

IERC7510.sol
/// @notice The struct used to reference a token in an NFT contract
struct Token {
    address collection;
    uint256 id;
}

interface IERC7510 {

    /// @notice Emitted when the parent tokens for an NFT is updated
    event UpdateParentTokens(uint256 indexed tokenId);

    /// @notice Get the parent tokens of an NFT
    /// @param tokenId The NFT to get the parent tokens for
    /// @return An array of parent tokens for this NFT
    function parentTokensOf(uint256 tokenId) external view returns (Token[] memory);

    /// @notice Check if another token is a parent of an NFT
    /// @param tokenId The NFT to check its parent for
    /// @param otherToken Another token to check as a parent or not
    /// @return Whether `otherToken` is a parent of `tokenId`
    function isParentToken(uint256 tokenId, Token memory otherToken) external view returns (bool);

    /// @notice Set the parent tokens for an NFT
    /// @param tokenId The NFT to set the parent tokens for
    /// @param parentTokens The parent tokens to set
    function setParentTokens(uint256 tokenId, Token[] memory parentTokens) external;

}

Events

UpdateParentTokens
javascript
event UpdateParentTokens(uint256 indexed tokenId);

An event emitted when an NFT's parent-token information is updated. It is emitted whenever the list of parent tokens associated with the specified NFT changes. External applications and indexing services can use the event to synchronize their records of which parents an NFT is derived from. Because tokenId is indexed, consumers can efficiently detect only the updates related to a particular NFT.

Parameters

  • tokenId
    • The ID of the NFT whose parent-token information was updated.

Structs

Token
javascript
struct Token {
    address collection;
    uint256 id;
}

A struct containing the information required to reference an NFT. It pairs a contract address with a token ID so that parent-child relationships can reference NFTs in other contracts. This format identifies exactly which NFT in which contract is being referenced, something a single token identifier cannot convey on its own. It allows hierarchies to express relationships across NFT collections.

Parameters

  • collection
    • The address of the contract to which the NFT belongs.
  • id
    • The token ID within that contract.

Functions

parentTokensOf
javascript
function parentTokensOf(uint256 tokenId) external view returns (Token[] memory);

Retrieves the list of parent tokens of a specified NFT. The function returns all parents assigned to the NFT. It lets consumers identify which NFTs a given NFT was derived from. The return value is an array, so it also supports NFTs with multiple parents. Applications can display these relationships or use them in licensing and intellectual property management.

Arguments

  • tokenId
    • The ID of the NFT whose parent tokens are being queried.

Return value

  • Token[]
    • An array containing the specified NFT's parent-token information.
isParentToken
javascript
function isParentToken(uint256 tokenId, Token memory otherToken) external view returns (bool);

Determines whether another token is a parent of a specified NFT. It checks whether the supplied token appears in the NFT's list of parent tokens. The function is useful for verifying an individual relationship. Applications can use it to validate derivation relationships or control actions based on a particular parent-child relationship.

Arguments

  • tokenId
    • The ID of the NFT to check.
  • otherToken
    • A Token struct representing the token to check as a possible parent.

Return value

  • bool
    • If otherToken is a parent of tokenId, returns true; otherwise, returns false.
setParentTokens
javascript
function setParentTokens(uint256 tokenId, Token[] memory parentTokens) external;

Sets the list of parent tokens associated with an NFT. Administrators or other authorized parties can use the function to update parent-token information. It is used when the NFT's derivation changes or when parent NFTs need to be added or removed. A successful update emits the UpdateParentTokens event, making the change visible externally. The argument is an array to support multiple parents.

Arguments

  • tokenId
    • The ID of the NFT whose parents are being set.
  • parentTokens
    • An array of Token structs to register as the NFT's parents.

Rationale

Main differences from ERC-6150

ERC-7510 and ERC-6150 have similar goals, but two important design differences distinguish them.

First, ERC-7510 can reference NFTs in other contracts as parents. ERC-6150 handles hierarchies within one contract, but in practice derivative works are often issued through another contract. For example, an original art NFT and a three-dimensional model based on it may belong to different collections. ERC-7510 accommodates these cases.

Second, ERC-7510 can assign multiple parent NFTs. In intellectual property use cases, one work is often derived from several original works. A film NFT featuring several NFT characters is one example. ERC-6150 allows only one parent per NFT, whereas ERC-7510 permits multiple parents.

Naming conventions are kept as close as possible to ERC-6150 to preserve a consistent interface and avoid unnecessary differences.

Why child tokens are not recorded

ERC-7510 records only parents; the interface contains no mechanism for recording children. This is deliberate, for the following reasons.

An original NFT (the parent) is issued first, and a derivative NFT (the child) is issued later. When a derivative NFT is created, the creator already knows which parents it is derived from. Recording the parents on the derivative NFT is therefore straightforward.

Conversely, an original NFT has no way of knowing at issuance which derivative NFTs will be created in the future. Recording children would require adding each new derivative to the original NFT whenever the derivative is issued. If the two NFTs belong to different contracts, they have separate write permissions; under the permission assumptions described in the proposal, both updates cannot be performed together in one transaction. In some cases, the derivative issuer may have no permission to write directly to the original NFT contract.

Because recording children may not be technically or operationally feasible in these circumstances, ERC-7510 adopts the simpler approach of recording only parents.

The result is that the information available when a derivative NFT is issued can be recorded reliably, making cross-contract implementations easier.

Reference implementation

ERC7510.sol
// SPDX-License-Identifier: CC0-1.0

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";

import "./IERC7510.sol";

contract ERC7510 is ERC721, IERC7510 {

    mapping(uint256 => Token[]) private _parentTokens;
    mapping(uint256 => mapping(address => mapping(uint256 => bool))) private _isParentToken;

    constructor(
        string memory name, string memory symbol
    ) ERC721(name, symbol) {}

    function supportsInterface(
        bytes4 interfaceId
    ) public view virtual override returns (bool) {
        return interfaceId == type(IERC7510).interfaceId || super.supportsInterface(interfaceId);
    }

    function parentTokensOf(
        uint256 tokenId
    ) public view virtual override returns (Token[] memory) {
        require(_exists(tokenId), "ERC7510: query for nonexistent token");
        return _parentTokens[tokenId];
    }

    function isParentToken(
        uint256 tokenId, Token memory otherToken
    ) public view virtual override returns (bool) {
        require(_exists(tokenId), "ERC7510: query for nonexistent token");
        return _isParentToken[tokenId][otherToken.collection][otherToken.id];
    }

    function setParentTokens(
        uint256 tokenId, Token[] memory parentTokens
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC7510: caller is not owner or approved");
        _clear(tokenId);
        for (uint256 i = 0; i < parentTokens.length; i++) {
            _parentTokens[tokenId].push(parentTokens[i]);
            _isParentToken[tokenId][parentTokens[i].collection][parentTokens[i].id] = true;
        }
        emit UpdateParentTokens(tokenId);
    }

    function _burn(
        uint256 tokenId
    ) internal virtual override {
        super._burn(tokenId);
        _clear(tokenId);
    }

    function _clear(
        uint256 tokenId
    ) private {
        Token[] storage parentTokens = _parentTokens[tokenId];
        for (uint256 i = 0; i < parentTokens.length; i++) {
            delete _isParentToken[tokenId][parentTokens[i].collection][parentTokens[i].id];
        }
        delete _parentTokens[tokenId];
    }

}

Security

Parent-token references may become invalid

ERC-7510 stores the parent-token information associated with an NFT, but a reference can later become invalid. There are two main reasons for this.

First, an NFT designated as a parent may later be subject to a burn. After an NFT is burned, its token ID no longer exists. Consequently, a parent recorded as a source of derivation may no longer exist.

Second, a contract implementing setParentTokens might not validate the parent tokens. Although the function is defined by the standard interface, the implementing contract determines which checks to perform. If the developer omits checks such as whether the referenced NFT actually exists or whether it belongs to the appropriate contract, nonexistent NFTs can be registered as parents.

For these reasons, recorded parent-token information is not necessarily valid.

Checks required on the application side

Applications using ERC-7510 should not blindly trust the parent-token information retrieved through parentTokensOf. They need to verify that the referenced parent tokens actually exist.

For example, applications can use ordinary NFT validation techniques provided by the contract, such as calling ownerOf to see whether an owner can be retrieved or checking how the contract behaves for a nonexistent token ID.

Without these checks, an application may display derivation relationships based on nonexistent NFTs and process incorrect data. Applications using ERC-7510 should therefore validate parent-token references as a security measure.

Citation

Ming Jiang (@minkyn), Zheng Han (@hanbsd), Fan Yang (@fayang), "ERC-7510: Cross-Contract Hierarchical NFT [DRAFT]," Ethereum Improvement Proposals, no. 7510, August 2023. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-7510.

Conclusion

ERC-7510 proposes a mechanism for storing and querying hierarchical relationships across multiple NFT collections.

If you have questions, feel free to send me a direct message on Twitter.

Twitter @cardene777

I also publish technical content on the following platforms.