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.
This article examines ERC-5635, which proposes a mechanism for managing licensing agreements for derivative NFT works.
This article translates, summarizes, and expands on the following specification.
More EIP explainers:
Overview
ERC-5635 proposes standardizing an NFT Licensing Oracle that registers and exposes licensing agreements for derivative works.
Derivative NFTs (dNFTs) and original NFTs (oNFTs)
The proposal calls a derivative work's NFT a dNFT and its source NFT an oNFT. For example, another creator might produce a new work based on an existing NFT artwork.
Licensing agreements
A licensor with the appropriate rights associated with the oNFT can grant a licensee permission to create a derivative work. The licensee may pay royalties in return.
ERC-5635 defines a mechanism for recording and managing the terms of such agreements and making them discoverable by others.
Without a common way to identify licensing agreements, it can be difficult to determine whether a derivative NFT was created with permission, potentially leading to copyright disputes. The proposal makes the original work and associated authorization easier to identify.
An on-chain licensing record does not independently establish that the licensor owns the necessary intellectual property rights. Those rights and the legal agreement must be assessed separately.
Specification
Three roles in the NFT licensing standard
- oNFT — the original NFT. Its holder acts as the licensor in the proposed model, assuming the appropriate rights. Any NFT may be an oNFT.
- dNFT — an NFT representing a derivative work based on the oNFT. Its holder is the licensee in the model.
- Registry — the contract that provides a way to verify the recorded licensing information issued for the oNFT.
Together these roles support discoverable NFT licensing.
IERC5635DNFT
A dNFT contract must implement two interfaces:
IERC5635DNFT, the proposed derivative NFT interface.IERC165, which supports interface detection.
pragma solidity ^0.6.0;
import "./IERC165.sol";
///
/// @notice Interface of NFT derivatives (dNFT) for the NFT Licensing Standard
/// @dev The ERC-165 identifier for this interface is 0xd584841c.
interface IERC5635DNFT is IERC165 {
/// ERC165 bytes to add to interface array - set in parent contract
/// implementing this standard
///
/// bytes4(keccak256("IERC5635DNFT{}")) == 0xd584841c
/// bytes4 private constant _INTERFACE_ID_IERC5635DNFT = 0xd584841c;
/// _registerInterface(_INTERFACE_ID_IERC5635XDNFT);
/// @notice Get the number of credentials.
/// @param _tokenId - ID of the dNFT asset queried
/// @return _number - the number of credentials
function numberOfCredentials(
uint256 _tokenId
) external view returns (
uint256 _number
);
/// @notice Called with the sale price to determine how much royalty is owed and to whom.
/// @param _tokenId - ID of the dNFT asset queried
/// @param _credentialId - ID of the licensing agreement credential, the max id is numberOfCredentials(_tokenId)-1
/// @return _oNFT - the oNFT address where the licensing from
/// @return _tokenID - the oNFT ID where the licensing from
/// @return _registry - the address of registry which can verify this credential
function authorizedBy(
uint256 _tokenId,
uint256 _credentialId
) external view returns (
address _oNFT,
uint256 _tokenId,
address _registry
);
}
interface IERC165 {
/// @notice Query if a contract implements an interface
/// @param interfaceID The interface identifier, as specified in ERC-165
/// @dev Interface identification is specified in ERC-165. This function
/// uses less than 30,000 gas.
/// @return `true` if the contract implements `interfaceID` and
/// `interfaceID` is not 0xffffffff, `false` otherwise
function supportsInterface(bytes4 interfaceID) external view returns (bool);
}The interface defines the following functions.
numberOfCredentials
function numberOfCredentials(
uint256 _tokenId
) external view returns (
uint256 _number
);Returns the number of licensing credentials associated with a specified dNFT. For example, a derivative NFT with three credentials corresponding to three original NFTs would return 3.
authorizedBy
function authorizedBy(
uint256 _tokenId,
uint256 _credentialId
) external view returns (
address _oNFT,
uint256 _tokenId,
address _registry
);Retrieves information about a particular licensing credential associated with a dNFT:
- The original NFT contract address.
- The original NFT token ID.
- The registry address used to verify the credential.
Applications can use this information to identify the original work and locate the registry that records its authorization.
What is IERC165?
IERC165 allows applications to query whether a contract supports a particular interface, including IERC5635DNFT.
For an introduction to ERC-165, see:
[ERC165] Checking Whether a Contract Supports an Interface
IERC5635Registry
The registry interface manages and verifies licensing information. Registry contracts must implement IERC5635Registry for core license discovery and validation, and IERC165 for interface detection.
The interface defines functions for discovering whether an agreement exists between a dNFT and oNFT, its terms, and royalty information.
pragma solidity ^0.6.0;
import "./IERC165.sol";
///
/// @dev Interface of NFT derivatives (dNFT) for the NFT Licensing Standard
/// Note: the ERC-165 identifier for this interface is 0xb5065e9f
interface IERC5635Registry is IERC165 {
/// ERC165 bytes to add to interface array - set in parent contract
/// implementing this standard
///
/// bytes4(keccak256("IERC5635Registry{}")) == 0xb5065e9f
/// bytes4 private constant _INTERFACE_ID_IERC5635Registry = 0xb5065e9f;
/// _registerInterface(_INTERFACE_ID_IERC5635Registry);
// TODO: Is the syntax correct?
enum LicensingAgreementType {
NonExclusive,
Exclusive,
Sole
}
/// @notice
/// @param _dNFT -
/// @param _dNFT_Id -
/// @param _oNFT -
/// @param _oNFT_Id -
/// @return _licensed -
/// @return _tokenID - the oNFT ID where the licensing from
/// @return _registry - the address of registry which can verify this credential
function isLicensed(
address _dNFT,
uint256 _dNFT_Id,
address _oNFT,
uint256 _oNFT_Id
) external view returns (
bool _licensed
);
/// @return _licenseIdentifier - the identifier, e.g. `MIT` or `Apache`, similar to `SPDX-License-Identifier: MIT` in SPDX.
function licensingInfo(
address _dNFT,
uint256 _dNFT_Id,
address _oNFT,
uint256 _oNFT_Id
) external view returns (
bool _licensed,
address _licensor,
uint64 _timeOfSignature,
uint64 _expiryTime,
LicensingAgreementType _type,
string _licenseName,
string _licenseUri //
);
function royaltyRate(
address _dNFT,
uint256 _dNFT_Id,
address _oNFT,
uint256 _oNFT_Id
) external view returns (
address beneficiary,
uint256 rate // The decimals is 9, means to divide the rate by 1,000,000,000
);
}LicensingAgreementType
enum LicensingAgreementType {
NonExclusive,
Exclusive,
Sole
}An enum specifying the type of license:
NonExclusive— the licensor may grant the same license to others.Exclusive— the license is exclusive, excluding other licensees according to its terms.Sole— the licensor retains the right to use the work but does not license it to others.
isLicensed
function isLicensed(
address _dNFT,
uint256 _dNFT_Id,
address _oNFT,
uint256 _oNFT_Id
) external view returns (bool _licensed);Checks whether a specified dNFT is licensed with respect to a specified oNFT. True indicates the existence of the license according to the registry's rules.
licensingInfo
function licensingInfo(
address _dNFT,
uint256 _dNFT_Id,
address _oNFT,
uint256 _oNFT_Id
) external view returns (
bool _licensed,
address _licensor,
uint64 _timeOfSignature,
uint64 _expiryTime,
LicensingAgreementType _type,
string _licenseName,
string _licenseUri
);Returns detailed licensing information:
licensed— whether the license is valid.licensor— the address granting the license.timeOfSignature— the agreement's signing time as a Unix timestamp.expiryTime— the expiration time as a Unix timestamp.type— non-exclusive, exclusive, or sole license.licenseName— a license name, such as MIT or CC-BY.licenseUri— a link to the license document.
These fields make the recorded validity and terms discoverable.
royaltyRate
function royaltyRate(
address _dNFT,
uint256 _dNFT_Id,
address _oNFT,
uint256 _oNFT_Id
) external view returns (
address beneficiary,
uint256 rate
);Returns royalty information for a dNFT and oNFT pair:
beneficiary— the royalty recipient.rate— a fixed-point royalty rate with nine decimal places, divided by 1,000,000,000 to obtain the fraction.
For example, rate = 50000000 represents a royalty of 5% (0.05).
IERC5635Licensing
IERC5635Licensing is an optional additional interface for issuing and managing licensing agreements. Implementing it enables a registry to issue licenses and manage approvals rather than only expose license information.
It inherits IERC165 and IERC5635Registry.
pragma solidity ^0.6.0;
import "./IERC165.sol";
///
///
interface IERC5635Licensing is IERC165, IERC5635Registry {
event Licence(address indexed _oNFT, uint256 indexed _oNFT_Id, address indexed _dNFT, uint256 indexed _dNFT_Id, uint64 _expiryTime, LicensingAgreementType _type, string _licenseName, string _licenseUri);
event Approval(address indexed _oNFT, address indexed _owner, address indexed _approved, uint256 indexed _tokenId);
event ApprovalForAll(address indexed _oNFT, address indexed _owner, address indexed _operator, bool _approved);
function licence(address indexed _oNFT, uint256 indexed _oNFT_Id, address indexed _dNFT, uint256 indexed _dNFT_Id, uint64 _expiryTime, LicensingAgreementType _type, string _licenseName, string _licenseUri) external payable; //TODO: mortgages or not?
function approve(address indexed _oNFT, address _approved, uint256 _tokenId) external payable; //TODO: why payable?
function setApprovalForAll(address indexed _oNFT, address _operator, bool _approved) external;
function getApproved(address indexed _oNFT, uint256 _tokenId) external view returns (address);
function isApprovedForAll(address indexed _oNFT, address _owner, address _operator) external view returns (bool);
}Events
Licence
event Licence(
address indexed _oNFT,
uint256 indexed _oNFT_Id,
address indexed _dNFT,
uint256 indexed _dNFT_Id,
uint64 _expiryTime,
LicensingAgreementType _type,
string _licenseName,
string _licenseUri
);Emitted when a new license is issued, recording the parties and applicable terms.
Approval
event Approval(
address indexed _oNFT,
address indexed _owner,
address indexed _approved,
uint256 indexed _tokenId
);Emitted when another address receives approval to issue licenses for a specified original NFT.
ApprovalForAll
event ApprovalForAll(
address indexed _oNFT,
address indexed _owner,
address indexed _operator,
bool _approved
);Emitted when an owner grants or revokes an operator's authority over licensing operations for all of the owner's NFTs in the relevant scope.
Functions
licence
function licence(
address _oNFT,
uint256 _oNFT_Id,
address _dNFT,
uint256 _dNFT_Id,
uint64 _expiryTime,
LicensingAgreementType _type,
string _licenseName,
string _licenseUri
) external payable;Issues a license to a dNFT based on an oNFT. The caller can specify the expiration, license type, name, and URI. The payable modifier permits implementations to require a fee or deposit.
approve
function approve(address _oNFT, address _approved, uint256 _tokenId) external payable;Delegates authority to issue licenses for a particular original NFT. The payable modifier permits implementations to charge for the approval operation.
setApprovalForAll
function setApprovalForAll(address _oNFT, address _operator, bool _approved) external;Grants an operator authority over multiple original NFTs in the relevant ownership scope.
getApproved
function getApproved(address _oNFT, uint256 _tokenId) external view returns (address);Retrieves the address approved to act for a specified NFT.
isApprovedForAll
function isApprovedForAll(address _oNFT, address _owner, address _operator) external view returns (bool);Checks whether a specified operator has authority to perform licensing operations for all of an owner's original NFTs in the relevant scope.
Additional explanation
authorizedBy and the registry's role
The dNFT's authorizedBy function identifies the original NFTs and licensing credentials on which it is based. Applications can then use the registry to verify those credentials.
The royalty query also lets marketplaces and users determine who is entitled to receive royalties. The original article refers to this as licensingRoyalty; the interface shown above uses royaltyRate.
Compliance is encouraged rather than enforced
ERC-5635 does not enforce licensing agreements on-chain. Like ERC-2981, it exposes information that applications and marketplaces are encouraged to respect, rather than automatically enforcing compliance.
Licensing and discovery stages
The proposal distinguishes two phases around minting a derivative NFT:
- Licensing stage — before minting, issue the license through IERC5635Licensing.
- Discovery stage — after minting, query and verify licensing information through IERC5635DNFT and IERC5635Registry.
This separation clarifies when each interface is intended to be used.
Design choice: license beneficiary
Under the proposal's model, license rights follow the relevant NFT when ownership changes, making its current owner the beneficiary. Actual legal transferability remains subject to the agreement's terms and applicable law.
The design intends to make licensing relationships easier to maintain after NFT transfers.
Differences from CantBeEvil licenses
CantBeEvil licenses describe rights granted by NFT creators to owners. ERC-5635 instead describes agreements between holders of original NFTs and creators of derivative NFTs.
The original article distinguishes a grant of usage permissions from a separately negotiated derivative licensing agreement. The existence and legal effect of either arrangement depend on its actual terms.
Design choice: approval levels
An oNFT holder can authorize another address to issue licenses on the holder's behalf.
approve— authorizes license issuance for a particular token ID.setApprovalForAll— authorizes an operator to issue licenses across the holder's relevant NFTs.
The two levels provide granular delegation.
Compatibility
ERC-5635 is designed to be compatible with ERC-721, ERC-1155, and ERC-2981.
For an introduction to ERC-2981, see:
[ERC2981] Understanding NFT Royalty Information
Citation
Timi (@0xTimi), 0xTriple7 (@ysqi), "ERC-5635: NFT Licensing Agreements [DRAFT]," Ethereum Improvement Proposals, no. 5635, August 2022. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-5635.
Conclusion
ERC-5635 proposes a common mechanism for discovering, verifying, and managing licensing agreements for derivative NFT works.
If you have questions, feel free to contact me on Twitter.
I also publish material on the following platforms.



