---
eip: 5635
label: ERC-5635
title: NFT Licensing Agreements
status: Stagnant
type: Standards Track
category: ERC
created: 2022-08-10
requires: 165, 721, 1155, 2981
official: https://eips.ethereum.org/EIPS/eip-5635
source: https://github.com/ethereum/ERCs/blob/master/ERCS/erc-5635.md
canonical: https://eips.huatuo.xyz/eip-5635/
lang: en
tldr: A stagnant proposal for an on-chain registry of licensing agreements, so marketplaces can check whether a derivative NFT was actually licensed by the owner of the original NFT and who is owed royalties.
tags: [nft, licensing, royalties, derivatives, registry]
---

# ERC-5635: NFT Licensing Agreements

> An oracle for retrieving NFT licensing agreements

**TL;DR:** A stagnant proposal for an on-chain registry of licensing agreements, so marketplaces can check whether a derivative NFT was actually licensed by the owner of the original NFT and who is owed royalties.

## What problem does it solve?

NFTs are often remixed: someone takes the art or traits of an existing NFT and mints a new "derivative" collection. Nothing on-chain tells a buyer or marketplace whether the original holder agreed to that, on what terms, or who should receive royalties.

ERC-5635 proposes a common way to record and look up such licensing agreements. It calls the original NFT an **oNFT** (held by the *licensor*) and the derivative a **dNFT** (held by the *licensee*). A licensing agreement says the licensor allowed the licensee to create the dNFT, usually in exchange for a royalty.

## How it works

The standard has three roles and three interfaces:

- **dNFT contract** (`IERC5635DNFT`, required for derivatives). For each token it exposes `numberOfCredentials(tokenId)` and `authorizedBy(tokenId, credentialId)`, which returns the oNFT contract, the oNFT token id, and the **registry** that can verify that credential.
- **Registry** (`IERC5635Registry`, required). A trusted contract that answers:
  - `isLicensed(dNFT, dNFTId, oNFT, oNFTId)` — yes or no;
  - `licensingInfo(...)` — licensor, signature time, expiry, agreement type (`NonExclusive`, `Exclusive`, `Sole`), license name (e.g. an SPDX-style identifier) and a license URI;
  - `royaltyRate(...)` — beneficiary and rate, with 9 decimals (divide by 1,000,000,000).
- **Licensing** (`IERC5635Licensing`, optional on the registry). Lets the oNFT holder, or an approved operator, call `licence(...)` to grant an agreement. It mirrors ERC-721 approvals with `approve` and `setApprovalForAll` per oNFT contract.

The spec splits the lifecycle in two: the **Licensing** stage, before the dNFT is minted, and the **Discovery** stage, after it, when marketplaces read credentials from the dNFT and verify them against the registry.

Rights follow the token. When an oNFT is sold, the new owner becomes the beneficiary of its licensing agreements.

## Sample code

A marketplace checking whether a listed NFT is a dNFT and whether its first credential is licensed:

```solidity
// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.20;

interface IERC165 { function supportsInterface(bytes4 id) external view returns (bool); }

interface IERC5635DNFT {
    function numberOfCredentials(uint256 tokenId) external view returns (uint256);
    function authorizedBy(uint256 tokenId, uint256 credentialId)
        external view returns (address oNFT, uint256 oNFTId, address registry);
}

interface IERC5635Registry {
    function isLicensed(address dNFT, uint256 dNFTId, address oNFT, uint256 oNFTId)
        external view returns (bool);
}

contract LicenseCheck {
    bytes4 constant DNFT_ID = 0xd584841c; // from the spec

    function firstCredentialValid(address dnft, uint256 tokenId) external view returns (bool) {
        if (!IERC165(dnft).supportsInterface(DNFT_ID)) return false;
        if (IERC5635DNFT(dnft).numberOfCredentials(tokenId) == 0) return false;
        (address o, uint256 oId, address reg) = IERC5635DNFT(dnft).authorizedBy(tokenId, 0);
        return IERC5635Registry(reg).isLicensed(dnft, tokenId, o, oId);
    }
}
```

## Things to know

- **Status: Stagnant.** The proposal has not progressed. The spec text still contains open `TODO` notes and its Security Considerations section just says "Needs discussion".
- Like [ERC-2981](/eip-2981/) royalties, nothing here is enforced on-chain. It only works if marketplaces choose to read and respect it.
- Trust sits with the registry. A dNFT can point to any registry, so a consumer must decide which registries it trusts.
- The spec says creator-to-holder licenses (such as "Can't Be Evil") are different from licensor-to-licensee agreements and cannot replace them.
- The interface snippets in the spec target Solidity 0.6 and do not compile as written (for example, `indexed` on function parameters). Treat them as a sketch.


---

This is an unofficial plain-language summary. Read the full specification: https://eips.ethereum.org/EIPS/eip-5635
