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-4675, a proposal for fractional ownership of NFTs on a per-tokenId basis.

This article translates, summarizes, and expands on the specification linked below.

I also cover a variety of other EIPs.

Overview

ERC-4675 proposes an interface for managing fractional ownership of multiple NFTs within a single smart contract. Existing fractionalization mechanisms such as ERC-1633 have required a separate deployment of a new ERC20-compatible token contract when fractionalizing an NFT. With ERC-4675, distinct fractional tokens can be defined for each NFT's token ID and represented and managed within the same contract.

At first glance, ERC-4675 resembles ERC1155, but there is an important distinction. Where an ID in ERC1155 represents multiple tokens of the same item, each ID in ERC-4675 represents an independent underlying NFT that can be fractionalized separately.

Motivation

Common approaches to NFT fractionalization require deploying a new fungible token contract each time an NFT is divided into fungible shares. This duplicates bytecode on Ethereum and limits functionality because each fungible token belongs to a separate contract.

As the number of NFT projects grows, there is a need for a more efficient and flexible way to fractionalize and manage NFTs. ERC-4675 proposes a new token standard that allows different NFTs to be fractionalized and managed within one contract, replacing this inefficient structure.

Specification

IMFNFT.sol
/**
    @title Multi-Fractional Non-Fungible Token Standard
    @dev Note : The ERC-165 identifier for this interface is 0x83f5d35f.
*/
interface IMFNFT {
    /**
        @dev This emits when ownership of any token changes by any mechanism.
        The `_from` argument MUST be the address of an account/contract sending the token.
        The `_to` argument MUST be the address of an account/contract receiving the token.
        The `_id` argument MUST be the token type being transferred. (represents NFT)
        The `_value` argument MUST be the number of tokens the holder balance is decrease by and match the recipient balance is increased by.
    */
    event Transfer(address indexed _from, address indexed _to, uint256 indexed _id, uint256 _value);

    /**
        @dev This emits when the approved address for token is changed or reaffirmed.
        The `_owner` argument MUST be the address of account/contract approving to withdraw.
        The `_spender` argument MUST be the address of account/contract approved to withdraw from the `_owner` balance.
        The `_id` argument MUST be the token type being transferred. (represents NFT)
        The `_value` argument MUST be the number of tokens the `_approved` is able to withdraw from `_owner` balance.
    */
    event Approval(address indexed _owner, address indexed _spender, uint256 indexed _id, uint256 _value);

    /**
        @dev This emits when new token type is added which represents the share of the Non-Fungible Token.
        The `_parentToken` argument MUST be the address of the Non-Fungible Token contract.
        The `_parentTokenId` argument MUST be the token ID of the Non-Fungible Token.
        The `_id` argument MUST be the token type being added. (represents NFT)
        The `_totalSupply` argument MUST be the number of total token supply of the token type.
    */
    event TokenAddition(address indexed _parentToken, uint256 indexed _parentTokenId, uint256 _id, uint256 _totalSupply);

    /**
        @notice Transfers `_value` amount of an `_id` from the msg.sender address to the `_to` address specified
        @dev msg.sender must have sufficient balance to handle the tokens being transferred out of the account.
        MUST revert if `_to` is the zero address.
        MUST revert if balance of msg.sender for token `_id` is lower than the `_value` being transferred.
        MUST revert on any other error.
        MUST emit the `Transfer` event to reflect the balance change.
        @param _to      Source address
        @param _id      ID of the token type
        @param _value   Transfer amount
        @return         True if transfer was successful, false if not
    */
    function transfer(address _to, uint256 _id, uint256 _value) external returns (bool);

    /**
        @notice Approves `_value` amount of an `_id` from the msg.sender to the `_spender` address specified.
        @dev msg.sender must have sufficient balance to handle the tokens when the `_spender` wants to transfer the token on behalf.
        MUST revert if `_spender` is the zero address.
        MUST revert on any other error.
        MUST emit the `Approval` event.
        @param _spender Spender address(account/contract which can withdraw token on behalf of msg.sender)
        @param _id      ID of the token type
        @param _value   Approval amount
        @return         True if approval was successful, false if not
    */
    function approve(address _spender, uint256 _id, uint256 _value) external returns (bool);

    /**
        @notice Transfers `_value` amount of an `_id` from the `_from` address to the `_to` address specified.
        @dev Caller must be approved to manage the tokens being transferred out of the `_from` account.
        MUST revert if `_to` is the zero address.
        MUST revert if balance of holder for token `_id` is lower than the `_value` sent.
        MUST revert on any other error.
        MUST emit `Transfer` event to reflect the balance change.
        @param _from    Source address
        @param _to      Target Address
        @param _id      ID of the token type
        @param _value   Transfer amount
        @return         True if transfer was successful, false if not

    */
    function transferFrom(address _from, address _to, uint256 _id, uint256 _value) external returns (bool);

    /**
        @notice Sets the NFT as a new type token
        @dev The contract itself should verify if the ownership of NFT is belongs to this contract itself with the `_parentNFTContractAddress` & `_parentNFTTokenId` before adding the token.
        MUST revert if the same NFT is already registered.
        MUST revert if `_parentNFTContractAddress` is address zero.
        MUST revert if `_parentNFTContractAddress` is not ERC-721 compatible.
        MUST revert if this contract itself is not the owner of the NFT.
        MUST revert on any other error.
        MUST emit `TokenAddition` event to reflect the token type addition.
        @param _parentNFTContractAddress    NFT contract address
        @param _parentNFTTokenId            NFT tokenID
        @param _totalSupply                 Total token supply
    */
    function setParentNFT(address _parentNFTContractAddress, uint256 _parentNFTTokenId, uint256 _totalSupply) external;

    /**
        @notice Get the token ID's total token supply.
        @param _id      ID of the token
        @return         The total token supply of the specified token type
    */
    function totalSupply(uint256 _id) external view returns (uint256);

    /**
        @notice Get the balance of an account's tokens.
        @param _owner  The address of the token holder
        @param _id     ID of the token
        @return        The _owner's balance of the token type requested
    */
    function balanceOf(address _owner, uint256 _id) external view returns (uint256);

    /**
        @notice Get the amount which `_spender` is still allowed to withdraw from `_owner`
        @param _owner   The address of the token holder
        @param _spender The address approved to withdraw token on behalf of `_owner`
        @param _id      ID of the token
        @return         The amount which `_spender` is still allowed to withdraw from `_owner`
    */
    function allowance(address _owner, address _spender, uint256 _id) external view returns (uint256);

    /**
        @notice Get the bool value which represents whether the NFT is already registered and fractionalized by this contract.
        @param _parentNFTContractAddress    NFT contract address
        @param _parentNFTTokenId            NFT tokenID
        @return                             The bool value representing the whether the NFT is already registered.
    */
    function isRegistered(address _parentNFTContractAddress, uint256 _parentNFTTokenId) external view returns (bool);
}

interface ERC165 {
    /**
        @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);
}

Transfer

js
event Transfer(address indexed _from, address indexed _to, uint256 indexed _id, uint256 _value);

Emitted when token ownership changes. When fractional NFT tokens are transferred, the event records the sending and receiving addresses, the relevant token ID, and the amount transferred.

Parameters

  • _from
    • Address sending the tokens.
  • _to
    • Address receiving the tokens.
  • _id
    • Relevant token type (the ID associated with an NFT).
  • _value
    • Number of tokens transferred.

Approval

js
event Approval(address indexed _owner, address indexed _spender, uint256 indexed _id, uint256 _value);

Emitted when an address is authorized to transfer tokens on another address's behalf. It indicates that _spender has been authorized to transfer fractional NFT tokens on behalf of _owner.

Parameters

  • _owner
    • Address of the token owner.
  • _spender
    • Address authorized to transfer tokens.
  • _id
    • ID of the token type.
  • _value
    • Number of tokens authorized for transfer.

TokenAddition

js
event TokenAddition(address indexed _parentToken, uint256 indexed _parentTokenId, uint256 _id, uint256 _totalSupply);

Emitted when a new NFT is registered for fractionalization.

When an existing ERC721 token is registered as a token ID that can be managed fractionally, this event records the NFT's information and the supply of its fractional tokens.

Parameters

  • _parentToken
    • Address of the underlying NFT contract.
  • _parentTokenId
    • Token ID of the underlying NFT.
  • _id
    • ID of the fractional token type being registered.
  • _totalSupply
    • Total number of fractional tokens issued.

transfer

js
function transfer(address _to, uint256 _id, uint256 _value) external returns (bool);

Transfers fractional tokens from the caller's account to a specified destination. It sends the specified amount of fractional NFT tokens held by the sending address to the recipient. Invalid transfers, such as those involving insufficient balances or the zero address, are rejected.

Parameters

  • _to
    • Address receiving the tokens.
  • _id
    • ID of the token type.
  • _value
    • Amount of tokens to transfer.

Return value

  • bool
    • true if successful, false otherwise.

approve

js
function approve(address _spender, uint256 _id, uint256 _value) external returns (bool);

Authorizes a specified address to transfer a specified amount of tokens. It allows that address to transfer fractional NFT tokens owned by the caller on the caller's behalf. Approval of the zero address is rejected.

Parameters

  • _spender
    • Authorized address.
  • _id
    • ID of the token type.
  • _value
    • Amount of tokens to authorize.

Return value

  • bool
    • true if approval succeeds.

transferFrom

js
function transferFrom(address _from, address _to, uint256 _id, uint256 _value) external returns (bool);

Allows an authorized address to transfer tokens from a specified source to a specified destination. It transfers the specified token ID and amount from _from to _to. Prior authorization through approve is required.

Parameters

  • _from
    • Address sending the tokens.
  • _to
    • Address receiving the tokens.
  • _id
    • ID of the token type.
  • _value
    • Number of tokens to transfer.

Return value

  • bool
    • true if the transfer succeeds.

setParentNFT

js
function setParentNFT(address _parentNFTContractAddress, uint256 _parentNFTTokenId, uint256 _totalSupply) external;

Registers an existing NFT for a new fractional token type. To manage an ERC721 token fractionally, the contract registers an NFT that it owns under a token ID and sets the number of fractions.

Parameters

  • _parentNFTContractAddress
    • Address of the underlying NFT contract.
  • _parentNFTTokenId
    • Token ID of the underlying NFT.
  • _totalSupply
    • Total supply of fractional tokens.

totalSupply

js
function totalSupply(uint256 _id) external view returns (uint256);

Retrieves the total supply of the specified token ID. It returns the total number of fractional tokens associated with each NFT.

Parameters

  • _id
    • ID of the relevant token type.

Return value

  • uint256
    • Total supply of the relevant token.

balanceOf

js
function balanceOf(address _owner, uint256 _id) external view returns (uint256);

Retrieves the amount of tokens held by a particular account. It returns the owner's balance of fractional NFT tokens.

Parameters

  • _owner
    • Account address.
  • _id
    • Token ID.

Return value

  • uint256
    • Balance of the specified account.

allowance

js
function allowance(address _owner, address _spender, uint256 _id) external view returns (uint256);

Retrieves the token amount authorized through approve. It returns how many tokens _spender can still transfer on behalf of _owner.

Parameters

  • _owner
    • Address of the token holder.
  • _spender
    • Authorized address.
  • _id
    • Token ID.

Return value

  • uint256
    • Remaining authorized token amount.

isRegistered

js
function isRegistered(address _parentNFTContractAddress, uint256 _parentNFTTokenId) external view returns (bool);

Checks whether the specified NFT has already been registered for fractionalization. It determines whether the NFT is managed by this contract.

Parameters

  • _parentNFTContractAddress
    • NFT contract address.
  • _parentNFTTokenId
    • Token ID.

Return value

  • bool
    • true if registered, false otherwise.

onERC721Received

js
function onERC721Received(address _operator, address _from, uint256 _tokenId, bytes calldata _data) external pure returns (bytes4);

Called when an NFT is received through the ERC721 safeTransferFrom function. The contract needs this function to receive ERC721 tokens safely. It returns a fixed function selector (0x150b7a02).

Parameters

  • _operator
    • Address that called safeTransferFrom.
  • _from
    • Address of the NFT's previous owner.
  • _tokenId
    • Token ID of the received NFT.
  • _data
    • Additional data.

Return value

  • bytes4
    • Function selector of onERC721Received.

Additional details

ERC-4675 does not include functions such as symbol or name. These values can be retrieved directly from the underlying NFT contract. Copying and storing them in the contract each time would lead to unnecessary bytecode accumulating on Ethereum, so they are omitted for efficiency. If necessary, however, metadata can be retrieved from the underlying NFT and incorporated into each token type.

ERC-4675 is designed for flexibility across projects with different token structures and architectures. For functionality such as mint, burn, and governance, it specifies only minimal common requirements, allowing implementers to extend the standard freely.

Compatibility

To maintain compatibility with existing standards, ERC-4675 aligns its function and event names with an existing interface (the original Japanese article leaves that interface unnamed). Its use of _id to identify token types is also similar to ERC1155.

Because ERC-4675 is designed to work with ERC721, it relies only on the standard specification rather than extensions. This allows projects to design their tokens flexibly according to their intended use cases and scenarios.

Security

When fractionalizing an NFT that has already been minted, ownership of that NFT must first be transferred to the fractionalization contract. If fractionalization proceeds without ownership of the NFT, tokens unrelated to the NFT may be issued. The setParentNFT function must therefore strictly verify that the contract itself owns the NFT.

If anyone can execute setParentNFT, an unrelated third party may front-run the NFT owner and register the NFT first. The following measures are recommended to avoid this problem.

  • Restrict callers of the function to an administrator (admin).
  • Process the NFT transfer and registration in a single atomic transaction (for example, in a manner similar to a flash loan or swap).

These measures help ensure the legitimacy and security of NFT fractionalization.

Citation

David Kim (@powerstream3604), "ERC-4675: Multi-Fractional Non-Fungible Tokens [DRAFT]," Ethereum Improvement Proposals, no. 4675, January 2022. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-4675.

Conclusion

This article covered ERC-4675, a proposal for fractional ownership of NFTs on a per-tokenId basis. I hope this explanation was helpful.

If you have questions, feel free to reach out via direct message on Twitter.

Twitter @cardene777

I also publish content on other platforms, which you can find below.

https://chaldene.net/