{"eip":4944,"title":"Contract with Exactly One Non-fungible Token","description":"An ERC-721 compatible single-token NFT","authors":["Víctor Muñoz (@victormunoz)","Josep Lluis de la Rosa (@peplluis7)","Andres El-Fakdi (@Bluezfish)"],"status":"Stagnant","type":"Standards Track","category":"ERC","created":"2022-03-25","requires":[721],"discussionsTo":"https://ethereum-magicians.org/t/erc721-minting-only-one-token/8602/2","repo":"ERCs","label":"ERC-4944","officialUrl":"https://eips.ethereum.org/EIPS/eip-4944","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-4944.md","url":"https://eips.huatuo.xyz/eip-4944/","tldr":{"en":"An ERC-721 contract that mints exactly one token, so the contract address itself identifies the NFT and can hold its own ERC-20 balance that the NFT owner controls.","ja":"ちょうど 1 つのトークンだけをミントする ERC-721 コントラクト。コントラクトアドレス自体が NFT を識別し、NFT の所有者が管理できる独自の ERC-20 残高を保持できる。","ko":"토큰을 정확히 하나만 민팅하는 ERC-721 컨트랙트. 컨트랙트 주소 자체가 NFT를 식별하며, NFT 소유자가 제어하는 자체 ERC-20 잔액을 보유할 수 있다.","zh":"一个只铸造一枚代币的 ERC-721 合约，因此合约地址本身就标识这枚 NFT，并且可以持有由 NFT 所有者控制的、属于它自己的 ERC-20 余额。"},"tags":["nft","erc-721","single-token","composable"],"explainers":{"en":{"lang":"en","tldr":"An ERC-721 contract that mints exactly one token, so the contract address itself identifies the NFT and can hold its own ERC-20 balance that the NFT owner controls.","tags":["nft","erc-721","single-token","composable"],"related":[721,20,998,6551],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-4944/","markdown":"## What problem does it solve?\n\nIn [ERC-721](/eip-721/) an NFT is identified by the pair *(contract address, token ID)*, and the collection contract is shared by thousands of tokens. A single NFT has no address of its own, so it cannot directly own other assets.\n\nERC-4944 takes the opposite approach: one contract, one token. Because the contract address now uniquely identifies the NFT, anything sent to that address effectively belongs to the NFT. The authors' motivating idea is an NFT with its own \"budget\": for example, a digital artwork holding ERC-20 tokens that pay for its own preservation, or an NFT that acts like an autonomous agent owning other assets. It aims to get composability similar to [ERC-998](/eip-998/) without extra machinery, while staying fully ERC-721 compatible so marketplaces and wallets still work.\n\n## How it works\n\nThe spec is short and mostly convention:\n\n- The **constructor mints the single token** (token ID 0 in the reference code) to the deployer and sets a flag so no further minting is possible.\n- The contract is otherwise a normal ERC-721, so it can be listed, transferred and displayed by existing tools.\n- A **token-spending function** lets the current NFT owner move [ERC-20](/eip-20/) tokens that were sent to the contract. Ownership is checked with `balanceOf(msg.sender) \u003e 0`, so whoever holds the NFT controls the budget, and that control moves with the NFT on transfer.\n- A helper returns the contract's balance of a given ERC-20.\n\n## Sample code\n\nBased on the reference implementation, using OpenZeppelin v5:\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\nimport {ERC721} from \"@openzeppelin/contracts/token/ERC721/ERC721.sol\";\nimport {IERC20} from \"@openzeppelin/contracts/token/ERC20/IERC20.sol\";\nimport {SafeERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\n\ncontract SingleNFT is ERC721 {\n    using SafeERC20 for IERC20;\n\n    constructor(string memory name_, string memory symbol_) ERC721(name_, symbol_) {\n        _mint(msg.sender, 0); // the one and only token; no public mint exists\n    }\n\n    modifier onlyHolder() {\n        require(balanceOf(msg.sender) \u003e 0, \"not the NFT owner\");\n        _;\n    }\n\n    /// Spend ERC-20 tokens held by this NFT.\n    function transferTokens(IERC20 token, address to, uint256 amount) external onlyHolder {\n        token.safeTransfer(to, amount);\n    }\n\n    function balanceTokens(IERC20 token) external view returns (uint256) {\n        return token.balanceOf(address(this));\n    }\n}\n```\n\n## Things to know\n\n- Status is **Stagnant**. The spec is informal (no interface ID, few MUSTs), so implementations may differ.\n- Deploying a whole contract per NFT is far more expensive than minting into a shared collection, and the approach does not help existing NFTs.\n- [ERC-6551](/eip-6551/) (token-bound accounts) solves the same \"an NFT that owns things\" problem differently: it gives any existing ERC-721 token its own smart-contract account, without redeploying.\n- The reference only handles ERC-20. Holding ETH or other NFTs would need extra receive/transfer functions.\n- Whoever holds the NFT controls everything inside it, so selling the NFT hands over its balance too.\n"},"ja":{"lang":"ja","tldr":"ちょうど 1 つのトークンだけをミントする ERC-721 コントラクト。コントラクトアドレス自体が NFT を識別し、NFT の所有者が管理できる独自の ERC-20 残高を保持できる。","tags":["nft","erc-721","single-token","composable"],"related":[721,20,998,6551],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-4944/","markdown":"## 何を解決するのか\n\n[ERC-721](/eip-721/) では、NFT は *（コントラクトアドレス、トークン ID）* の組で識別され、コレクションのコントラクトは数千のトークンで共有されます。1 つの NFT は自分自身のアドレスを持たないため、他の資産を直接所有できません。\n\nERC-4944 は逆のアプローチを取ります。1 コントラクトにつき 1 トークンです。コントラクトアドレスが NFT を一意に識別するので、そのアドレスに送られたものは事実上 NFT のものになります。作者の動機となるアイデアは、NFT が自分専用の「予算」を持つことです。たとえば、自身の保存費用を支払う ERC-20 トークンを保有するデジタルアート作品や、他の資産を所有する自律エージェントのように振る舞う NFT です。追加の仕組みなしで [ERC-998](/eip-998/) に似たコンポーザビリティを得ることを目指しつつ、ERC-721 との完全な互換性を保つため、マーケットプレイスやウォレットもそのまま動作します。\n\n## 仕組み\n\n仕様は短く、ほとんどが慣習です。\n\n- **コンストラクタが唯一のトークンをミント**し（リファレンスコードではトークン ID 0）、デプロイヤーに渡し、以後のミントができないようにフラグを設定します。\n- コントラクトはそれ以外は通常の ERC-721 なので、既存のツールで出品、転送、表示ができます。\n- **トークン支出関数**により、現在の NFT 所有者は、コントラクトに送られた [ERC-20](/eip-20/) トークンを動かせます。所有権は `balanceOf(msg.sender) \u003e 0` で確認されるため、NFT を持つ人が予算を管理し、その管理権は NFT の移転とともに移ります。\n- ヘルパー関数が、指定した ERC-20 についてコントラクトの残高を返します。\n\n## サンプルコード\n\nリファレンス実装に基づく、OpenZeppelin v5 を使ったコード:\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\nimport {ERC721} from \"@openzeppelin/contracts/token/ERC721/ERC721.sol\";\nimport {IERC20} from \"@openzeppelin/contracts/token/ERC20/IERC20.sol\";\nimport {SafeERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\n\ncontract SingleNFT is ERC721 {\n    using SafeERC20 for IERC20;\n\n    constructor(string memory name_, string memory symbol_) ERC721(name_, symbol_) {\n        _mint(msg.sender, 0); // the one and only token; no public mint exists\n    }\n\n    modifier onlyHolder() {\n        require(balanceOf(msg.sender) \u003e 0, \"not the NFT owner\");\n        _;\n    }\n\n    /// Spend ERC-20 tokens held by this NFT.\n    function transferTokens(IERC20 token, address to, uint256 amount) external onlyHolder {\n        token.safeTransfer(to, amount);\n    }\n\n    function balanceTokens(IERC20 token) external view returns (uint256) {\n        return token.balanceOf(address(this));\n    }\n}\n```\n\n## 知っておくべきこと\n\n- ステータスは **Stagnant** です。仕様は形式ばっておらず（インターフェース ID なし、MUST も少数）、実装ごとに異なる可能性があります。\n- NFT ごとにコントラクト全体をデプロイするのは、共有コレクションにミントするより大幅に高価で、この方式は既存の NFT には役立ちません。\n- [ERC-6551](/eip-6551/)（トークンバウンドアカウント）は、同じ「ものを所有する NFT」という問題を別の方法で解決します。既存のどの ERC-721 トークンにも、再デプロイなしで独自のスマートコントラクトアカウントを与えます。\n- リファレンスは ERC-20 のみを扱います。ETH や他の NFT を保有するには、追加の受け取り・転送関数が必要です。\n- NFT を持つ人がその中身をすべて管理するので、NFT を売ればその残高も引き渡すことになります。\n"},"ko":{"lang":"ko","tldr":"토큰을 정확히 하나만 민팅하는 ERC-721 컨트랙트. 컨트랙트 주소 자체가 NFT를 식별하며, NFT 소유자가 제어하는 자체 ERC-20 잔액을 보유할 수 있다.","tags":["nft","erc-721","single-token","composable"],"related":[721,20,998,6551],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-4944/","markdown":"## 어떤 문제를 해결하나요?\n\n[ERC-721](/eip-721/)에서 NFT는 *(컨트랙트 주소, 토큰 ID)* 쌍으로 식별되며, 컬렉션 컨트랙트는 수천 개의 토큰이 함께 사용합니다. 개별 NFT에는 자기만의 주소가 없으므로 다른 자산을 직접 소유할 수 없습니다.\n\nERC-4944는 반대의 접근을 취합니다. 컨트랙트 하나에 토큰 하나입니다. 이제 컨트랙트 주소가 NFT를 고유하게 식별하므로, 그 주소로 보내진 것은 사실상 NFT의 소유가 됩니다. 작성자들이 동기로 삼은 아이디어는 NFT가 자기만의 \"예산\"을 갖는 것입니다. 예를 들어 자신의 보존 비용을 치르는 ERC-20 토큰을 보유한 디지털 미술품이나, 다른 자산을 소유한 자율 에이전트처럼 행동하는 NFT입니다. 추가 장치 없이 [ERC-998](/eip-998/)과 비슷한 조합 가능성을 얻는 것을 목표로 하며, ERC-721과 완전히 호환되므로 마켓플레이스와 지갑도 그대로 동작합니다.\n\n## 어떻게 동작하나요?\n\n스펙은 짧고 대부분 관례입니다.\n\n- **생성자가 유일한 토큰을 민팅**하여(참조 코드에서는 토큰 ID 0) 배포자에게 주고, 더 이상 민팅할 수 없도록 플래그를 설정합니다.\n- 그 외에는 일반적인 ERC-721이므로 기존 도구로 등록, 전송, 표시할 수 있습니다.\n- **토큰 지출 함수**를 통해 현재 NFT 소유자는 컨트랙트로 보내진 [ERC-20](/eip-20/) 토큰을 옮길 수 있습니다. 소유권은 `balanceOf(msg.sender) \u003e 0`으로 확인하므로 NFT를 가진 사람이 예산을 제어하며, 이 제어권은 NFT를 전송하면 함께 넘어갑니다.\n- 도우미 함수는 지정한 ERC-20에 대한 컨트랙트의 잔액을 반환합니다.\n\n## 샘플 코드\n\n참조 구현을 바탕으로 한 OpenZeppelin v5 사용 코드:\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\nimport {ERC721} from \"@openzeppelin/contracts/token/ERC721/ERC721.sol\";\nimport {IERC20} from \"@openzeppelin/contracts/token/ERC20/IERC20.sol\";\nimport {SafeERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\n\ncontract SingleNFT is ERC721 {\n    using SafeERC20 for IERC20;\n\n    constructor(string memory name_, string memory symbol_) ERC721(name_, symbol_) {\n        _mint(msg.sender, 0); // the one and only token; no public mint exists\n    }\n\n    modifier onlyHolder() {\n        require(balanceOf(msg.sender) \u003e 0, \"not the NFT owner\");\n        _;\n    }\n\n    /// Spend ERC-20 tokens held by this NFT.\n    function transferTokens(IERC20 token, address to, uint256 amount) external onlyHolder {\n        token.safeTransfer(to, amount);\n    }\n\n    function balanceTokens(IERC20 token) external view returns (uint256) {\n        return token.balanceOf(address(this));\n    }\n}\n```\n\n## 알아둘 점\n\n- 상태는 **Stagnant**입니다. 스펙이 비공식적이어서(인터페이스 ID 없음, MUST도 적음) 구현마다 다를 수 있습니다.\n- NFT마다 컨트랙트 전체를 배포하는 것은 공유 컬렉션에 민팅하는 것보다 훨씬 비싸며, 이 방식은 기존 NFT에는 도움이 되지 않습니다.\n- [ERC-6551](/eip-6551/)(토큰 바운드 계정)은 같은 \"무언가를 소유하는 NFT\" 문제를 다르게 해결합니다. 재배포 없이 기존의 모든 ERC-721 토큰에 자체 스마트 컨트랙트 계정을 부여합니다.\n- 참조 구현은 ERC-20만 다룹니다. ETH나 다른 NFT를 보유하려면 추가 수신/전송 함수가 필요합니다.\n- NFT를 가진 사람이 그 안의 모든 것을 제어하므로, NFT를 팔면 그 잔액도 함께 넘기게 됩니다.\n"},"zh":{"lang":"zh","tldr":"一个只铸造一枚代币的 ERC-721 合约，因此合约地址本身就标识这枚 NFT，并且可以持有由 NFT 所有者控制的、属于它自己的 ERC-20 余额。","tags":["nft","erc-721","single-token","composable"],"related":[721,20,998,6551],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-4944/","markdown":"## 它解决什么问题？\n\n在 [ERC-721](/eip-721/) 中，NFT 由 *（合约地址，代币 ID）* 这一对来标识，集合合约由成千上万枚代币共用。单个 NFT 没有自己的地址，因此无法直接拥有其他资产。\n\nERC-4944 采取相反的做法：一个合约，一枚代币。由于合约地址现在唯一标识这枚 NFT，发送到该地址的任何东西实际上都属于这枚 NFT。作者的初衷是让 NFT 拥有自己的\"预算\"：例如，一件数字艺术品持有 ERC-20 代币，用来支付自身的保存费用，或者一个像自主代理一样拥有其他资产的 NFT。它的目标是在没有额外机制的情况下获得类似 [ERC-998](/eip-998/) 的可组合性，同时保持与 ERC-721 完全兼容，使市场和钱包仍能正常工作。\n\n## 它如何运作\n\n规范很短，大多是约定：\n\n- **构造函数铸造这唯一的代币**（参考代码中代币 ID 为 0）给部署者，并设置一个标志，使之后无法再铸造。\n- 除此之外，该合约就是一个普通的 ERC-721，因此现有工具可以上架、转移和展示它。\n- 一个**代币支出函数**允许当前 NFT 所有者转移发送到该合约的 [ERC-20](/eip-20/) 代币。所有权通过 `balanceOf(msg.sender) \u003e 0` 检查，因此持有 NFT 的人控制预算，并且这种控制权会随 NFT 的转移而转移。\n- 一个辅助函数返回合约持有的指定 ERC-20 的余额。\n\n## 示例代码\n\n基于参考实现，使用 OpenZeppelin v5：\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\nimport {ERC721} from \"@openzeppelin/contracts/token/ERC721/ERC721.sol\";\nimport {IERC20} from \"@openzeppelin/contracts/token/ERC20/IERC20.sol\";\nimport {SafeERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\n\ncontract SingleNFT is ERC721 {\n    using SafeERC20 for IERC20;\n\n    constructor(string memory name_, string memory symbol_) ERC721(name_, symbol_) {\n        _mint(msg.sender, 0); // the one and only token; no public mint exists\n    }\n\n    modifier onlyHolder() {\n        require(balanceOf(msg.sender) \u003e 0, \"not the NFT owner\");\n        _;\n    }\n\n    /// Spend ERC-20 tokens held by this NFT.\n    function transferTokens(IERC20 token, address to, uint256 amount) external onlyHolder {\n        token.safeTransfer(to, amount);\n    }\n\n    function balanceTokens(IERC20 token) external view returns (uint256) {\n        return token.balanceOf(address(this));\n    }\n}\n```\n\n## 需要注意\n\n- 状态为 **Stagnant**。规范比较随意（没有接口 ID，MUST 很少），因此各实现可能有差异。\n- 为每个 NFT 部署一个完整合约，比在共享集合中铸造要贵得多，而且这种方式对已有的 NFT 没有帮助。\n- [ERC-6551](/eip-6551/)（代币绑定账户）以不同方式解决同样的\"拥有东西的 NFT\"问题：它无需重新部署，就为任何现有的 ERC-721 代币提供一个属于它自己的智能合约账户。\n- 参考实现只处理 ERC-20。要持有 ETH 或其他 NFT，还需要额外的接收/转移函数。\n- 谁持有这枚 NFT，谁就控制其中的一切，所以卖掉 NFT 也就交出了它的余额。\n"}}}
