{"eip":7832,"title":"Sustainable collaborative NFT collections","description":"Economically sustainable collaborative NFT collections with dynamic fees and donation-based engagement.","authors":["Gustavo Lobo (@gflobo)"],"status":"Review","type":"Standards Track","category":"ERC","created":"2024-12-04","requires":[721],"discussionsTo":"https://ethereum-magicians.org/t/erc-7832-sustainable-nft-collections/22201","repo":"ERCs","label":"ERC-7832","officialUrl":"https://eips.ethereum.org/EIPS/eip-7832","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-7832.md","url":"https://eips.huatuo.xyz/eip-7832/","tldr":{"en":"An ERC-721 extension for collaborative NFT collections with paid creator roles, mint fees that fall as a creator mints more within a cycle, donations to creators, and admin terms that can only change at fixed intervals.","ja":"共同制作の NFT コレクション向けの ERC-721 拡張。有料のクリエイターロール、サイクル内でミント数が増えるほど下がるミント手数料、クリエイターへの寄付、固定の間隔でしか変更できない管理者条件を備える。","ko":"협업형 NFT 컬렉션을 위한 ERC-721 확장. 유료 크리에이터 역할, 한 주기 안에서 더 많이 민팅할수록 내려가는 민팅 수수료, 크리에이터에 대한 기부, 정해진 간격으로만 바꿀 수 있는 관리자 조건을 제공한다.","zh":"面向协作式 NFT 系列的 ERC-721 扩展：付费的创作者角色、在一个周期内铸造越多则铸造费越低、向创作者捐赠，以及只能按固定间隔修改的管理员条款。"},"tags":["nft","erc-721","creators","fees","governance"],"explainers":{"en":{"lang":"en","tldr":"An ERC-721 extension for collaborative NFT collections with paid creator roles, mint fees that fall as a creator mints more within a cycle, donations to creators, and admin terms that can only change at fixed intervals.","tags":["nft","erc-721","creators","fees","governance"],"related":[721,165],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-7832/","markdown":"## What problem does it solve?\n\nSome NFT collections are built by many creators rather than one artist. Running them raises recurring issues: who may mint, how to price minting so a few accounts do not flood the supply, how supporters can fund creators directly, and how to stop an admin from changing fees whenever they like.\n\nERC-7832 bundles answers to these into one interface on top of [ERC-721](/eip-721/).\n\n## How it works\n\n**Roles.** Three role identifiers: `ADMIN_ROLE`, `CREATOR_ROLE` and `CONTRIBUTOR_ROLE`. The deployer gets admin and creator in the constructor.\n\n- Anyone can become a creator by calling `getCreatorSignature()` and paying `creatorSignatureFee`.\n- Anyone (other than the creator) can `donate(creator)` ETH to a creator; the donor receives `CONTRIBUTOR_ROLE` and a `DonationReceived` event is emitted.\n\n**Minting.** Only creators call `safeMint(uri)`, paying `mintFee()`:\n\n- Admins mint for free.\n- Otherwise the fee is `mintBaseFee` divided by a logarithm of how many times the caller has minted in the current cycle (log2 in the reference implementation), so repeat minting gets gradually cheaper.\n- When a creator exceeds `maxMintsPerUserInCycle`, their counter resets and the discount starts over.\n\n**Stable terms.** The admin sets `mintBaseFee`, `creatorSignatureFee` and `maxMintsPerUserInCycle` through `updateTerms`, first in the constructor and then at most once per `UPDATE_INTERVAL`. The spec recommends at least 720 hours (30 days). Each change emits `CreatorTermsUpdated`.\n\n**Admin controls.** `pause`/`unpause`, and `withdraw(amount)` for funds held by the contract. Token owners can `burn` their own tokens.\n\n## Sample code\n\nCore of the interface (abridged from the spec):\n\n```solidity\n// SPDX-License-Identifier: CC0-1.0\npragma solidity ^0.8.20;\n\nimport {IERC721} from \"@openzeppelin/contracts/token/ERC721/IERC721.sol\";\n\ninterface IERC7832 is IERC721 {\n    event CreatorTermsUpdated(uint256 mintBaseFee, uint256 creatorSignatureFee, uint256 maxMintsPerUserInCycle);\n    event DonationReceived(address from, address to, uint256 amount);\n\n    function mintBaseFee() external view returns (uint256);\n    function creatorSignatureFee() external view returns (uint256);\n    function maxMintsPerUserInCycle() external view returns (uint256);\n    function mintsPerUserInCycle(address user) external view returns (uint256);\n    function mintFee() external view returns (uint256);\n    function UPDATE_INTERVAL() external pure returns (uint256);\n\n    function getCreatorSignature() external payable;\n    function safeMint(string memory uri) external payable;\n    function donate(address creator) external payable;\n    function updateTerms(uint256 mintBaseFee, uint256 creatorSignatureFee, uint256 maxMintsPerUserInCycle) external;\n    function withdraw(uint256 amount) external;\n    function burn(uint256 tokenId) external;\n    function pause() external;\n    function unpause() external;\n}\n```\n\nFee calculation from the reference implementation (OpenZeppelin `Math.log2`):\n\n```solidity\nfunction mintFee() public view returns (uint256) {\n    if (hasRole(ADMIN_ROLE, msg.sender)) return 0;\n    uint256 userMints = mintsPerUserInCycle[msg.sender];\n    uint256 divisor = userMints \u003c= 1 ? 1 : Math.log2(userMints);\n    return mintBaseFee / divisor;\n}\n```\n\n## Things to know\n\n- Status is **Review**, so details may still change.\n- Integer `log2` rounds down: with 2 or 3 prior mints the divisor is 1, so the first real discount appears at 4 mints (half price).\n- The \"creator signature\" is a paid role grant, not a cryptographic signature.\n- Mint and creator fees are paid to the contract, and the admin can `withdraw` ETH from it, so the admin is a trusted party. The spec does not detail how donated ETH reaches the creator; check the implementation.\n- The spec recommends reentrancy protection on `safeMint`, `withdraw` and `donate`.\n"},"ja":{"lang":"ja","tldr":"共同制作の NFT コレクション向けの ERC-721 拡張。有料のクリエイターロール、サイクル内でミント数が増えるほど下がるミント手数料、クリエイターへの寄付、固定の間隔でしか変更できない管理者条件を備える。","tags":["nft","erc-721","creators","fees","governance"],"related":[721,165],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-7832/","markdown":"## 何を解決するのか\n\nNFT コレクションの中には、1 人のアーティストではなく多数のクリエイターによって作られるものがあります。その運営では、誰がミントできるのか、少数のアカウントが供給を氾濫させないようにミントの価格をどう設定するか、支援者がどうクリエイターに直接資金を送れるか、管理者が好きなときに手数料を変えるのをどう防ぐか、といった問題が繰り返し起こります。\n\nERC-7832 は、これらへの答えを [ERC-721](/eip-721/) の上の 1 つのインターフェースにまとめます。\n\n## 仕組み\n\n**ロール。** 3 つのロール識別子があります。`ADMIN_ROLE`、`CREATOR_ROLE`、`CONTRIBUTOR_ROLE` です。デプロイヤーはコンストラクタで管理者とクリエイターのロールを得ます。\n\n- 誰でも `getCreatorSignature()` を呼び、`creatorSignatureFee` を支払うことでクリエイターになれます。\n- 誰でも（そのクリエイター本人を除く）クリエイターに ETH を `donate(creator)` できます。寄付者は `CONTRIBUTOR_ROLE` を受け取り、`DonationReceived` イベントが発行されます。\n\n**ミント。** クリエイターだけが `safeMint(uri)` を呼べ、`mintFee()` を支払います。\n\n- 管理者は無料でミントします。\n- それ以外の場合、手数料は `mintBaseFee` を、呼び出し元が現在のサイクルで何回ミントしたかの対数（リファレンス実装では log2）で割ったものです。そのため、繰り返しミントするほど徐々に安くなります。\n- クリエイターが `maxMintsPerUserInCycle` を超えると、そのカウンターはリセットされ、割引は最初からやり直しになります。\n\n**安定した条件。** 管理者は `updateTerms` を通じて `mintBaseFee`、`creatorSignatureFee`、`maxMintsPerUserInCycle` を設定します。最初はコンストラクタで、その後は `UPDATE_INTERVAL` ごとに最大 1 回です。仕様は少なくとも 720 時間（30 日）を推奨しています。変更のたびに `CreatorTermsUpdated` が発行されます。\n\n**管理者の権限。** `pause`/`unpause`、およびコントラクトが保持する資金の `withdraw(amount)` です。トークンの所有者は自分のトークンを `burn` できます。\n\n## サンプルコード\n\nインターフェースの中核部分（仕様から抜粋）:\n\n```solidity\n// SPDX-License-Identifier: CC0-1.0\npragma solidity ^0.8.20;\n\nimport {IERC721} from \"@openzeppelin/contracts/token/ERC721/IERC721.sol\";\n\ninterface IERC7832 is IERC721 {\n    event CreatorTermsUpdated(uint256 mintBaseFee, uint256 creatorSignatureFee, uint256 maxMintsPerUserInCycle);\n    event DonationReceived(address from, address to, uint256 amount);\n\n    function mintBaseFee() external view returns (uint256);\n    function creatorSignatureFee() external view returns (uint256);\n    function maxMintsPerUserInCycle() external view returns (uint256);\n    function mintsPerUserInCycle(address user) external view returns (uint256);\n    function mintFee() external view returns (uint256);\n    function UPDATE_INTERVAL() external pure returns (uint256);\n\n    function getCreatorSignature() external payable;\n    function safeMint(string memory uri) external payable;\n    function donate(address creator) external payable;\n    function updateTerms(uint256 mintBaseFee, uint256 creatorSignatureFee, uint256 maxMintsPerUserInCycle) external;\n    function withdraw(uint256 amount) external;\n    function burn(uint256 tokenId) external;\n    function pause() external;\n    function unpause() external;\n}\n```\n\nリファレンス実装の手数料計算（OpenZeppelin の `Math.log2`）:\n\n```solidity\nfunction mintFee() public view returns (uint256) {\n    if (hasRole(ADMIN_ROLE, msg.sender)) return 0;\n    uint256 userMints = mintsPerUserInCycle[msg.sender];\n    uint256 divisor = userMints \u003c= 1 ? 1 : Math.log2(userMints);\n    return mintBaseFee / divisor;\n}\n```\n\n## 知っておくべきこと\n\n- ステータスは **Review** です。そのため、詳細はまだ変わる可能性があります。\n- 整数の `log2` は切り捨てられます。過去のミントが 2 回または 3 回のとき、除数は 1 です。したがって、最初の実質的な割引は 4 回目のミント（半額）で現れます。\n- 「クリエイター署名（creator signature）」は有料のロール付与であり、暗号学的な署名ではありません。\n- ミント手数料とクリエイター手数料はコントラクトに支払われ、管理者はそこから ETH を `withdraw` できます。したがって管理者は信頼される主体です。寄付された ETH がどのようにクリエイターに届くかは、仕様に詳しく書かれていません。実装を確認してください。\n- 仕様は、`safeMint`、`withdraw`、`donate` にリエントランシー対策を入れることを推奨しています。\n"},"ko":{"lang":"ko","tldr":"협업형 NFT 컬렉션을 위한 ERC-721 확장. 유료 크리에이터 역할, 한 주기 안에서 더 많이 민팅할수록 내려가는 민팅 수수료, 크리에이터에 대한 기부, 정해진 간격으로만 바꿀 수 있는 관리자 조건을 제공한다.","tags":["nft","erc-721","creators","fees","governance"],"related":[721,165],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-7832/","markdown":"## 어떤 문제를 해결하나요?\n\n일부 NFT 컬렉션은 한 명의 아티스트가 아니라 여러 크리에이터가 함께 만듭니다. 이런 컬렉션을 운영하다 보면 누가 민팅할 수 있는지, 소수의 계정이 공급을 범람시키지 않도록 민팅 가격을 어떻게 정할지, 후원자가 어떻게 크리에이터에게 직접 자금을 보낼지, 관리자가 마음대로 수수료를 바꾸지 못하게 하려면 어떻게 할지 같은 문제가 반복해서 생깁니다.\n\nERC-7832는 이에 대한 답을 [ERC-721](/eip-721/) 위의 인터페이스 하나로 묶습니다.\n\n## 어떻게 동작하나요?\n\n**역할.** 역할 식별자는 세 가지입니다. `ADMIN_ROLE`, `CREATOR_ROLE`, `CONTRIBUTOR_ROLE`입니다. 배포자는 생성자에서 관리자와 크리에이터 역할을 받습니다.\n\n- 누구나 `getCreatorSignature()`를 호출하고 `creatorSignatureFee`를 지불해 크리에이터가 될 수 있습니다.\n- 누구나(크리에이터 본인 제외) 크리에이터에게 ETH를 `donate(creator)`할 수 있습니다. 기부자는 `CONTRIBUTOR_ROLE`을 받고 `DonationReceived` 이벤트가 발생합니다.\n\n**민팅.** 크리에이터만 `safeMint(uri)`를 호출하며 `mintFee()`를 지불합니다.\n\n- 관리자는 무료로 민팅합니다.\n- 그 외에는 수수료가 `mintBaseFee`를 호출자가 현재 주기에서 민팅한 횟수의 로그(레퍼런스 구현에서는 log2)로 나눈 값입니다. 따라서 반복 민팅할수록 점차 저렴해집니다.\n- 크리에이터가 `maxMintsPerUserInCycle`을 넘으면 카운터가 초기화되고 할인이 처음부터 다시 시작됩니다.\n\n**안정적인 조건.** 관리자는 `updateTerms`를 통해 `mintBaseFee`, `creatorSignatureFee`, `maxMintsPerUserInCycle`을 설정합니다. 처음에는 생성자에서, 그다음에는 `UPDATE_INTERVAL`마다 최대 한 번입니다. 스펙은 최소 720시간(30일)을 권장합니다. 변경할 때마다 `CreatorTermsUpdated`가 발생합니다.\n\n**관리자 제어.** `pause`/`unpause`, 그리고 컨트랙트가 보유한 자금을 위한 `withdraw(amount)`가 있습니다. 토큰 소유자는 자신의 토큰을 `burn`할 수 있습니다.\n\n## 샘플 코드\n\n인터페이스의 핵심(스펙에서 발췌):\n\n```solidity\n// SPDX-License-Identifier: CC0-1.0\npragma solidity ^0.8.20;\n\nimport {IERC721} from \"@openzeppelin/contracts/token/ERC721/IERC721.sol\";\n\ninterface IERC7832 is IERC721 {\n    event CreatorTermsUpdated(uint256 mintBaseFee, uint256 creatorSignatureFee, uint256 maxMintsPerUserInCycle);\n    event DonationReceived(address from, address to, uint256 amount);\n\n    function mintBaseFee() external view returns (uint256);\n    function creatorSignatureFee() external view returns (uint256);\n    function maxMintsPerUserInCycle() external view returns (uint256);\n    function mintsPerUserInCycle(address user) external view returns (uint256);\n    function mintFee() external view returns (uint256);\n    function UPDATE_INTERVAL() external pure returns (uint256);\n\n    function getCreatorSignature() external payable;\n    function safeMint(string memory uri) external payable;\n    function donate(address creator) external payable;\n    function updateTerms(uint256 mintBaseFee, uint256 creatorSignatureFee, uint256 maxMintsPerUserInCycle) external;\n    function withdraw(uint256 amount) external;\n    function burn(uint256 tokenId) external;\n    function pause() external;\n    function unpause() external;\n}\n```\n\n레퍼런스 구현의 수수료 계산(OpenZeppelin `Math.log2`):\n\n```solidity\nfunction mintFee() public view returns (uint256) {\n    if (hasRole(ADMIN_ROLE, msg.sender)) return 0;\n    uint256 userMints = mintsPerUserInCycle[msg.sender];\n    uint256 divisor = userMints \u003c= 1 ? 1 : Math.log2(userMints);\n    return mintBaseFee / divisor;\n}\n```\n\n## 알아둘 점\n\n- 상태는 **Review**이므로 세부 사항이 아직 바뀔 수 있습니다.\n- 정수 `log2`는 내림합니다. 이전 민팅이 2회 또는 3회이면 나누는 값이 1이므로, 처음으로 실질적인 할인이 나타나는 것은 4회째 민팅(반값)입니다.\n- \"크리에이터 서명(creator signature)\"은 유료로 역할을 부여받는 것이지 암호학적 서명이 아닙니다.\n- 민팅 수수료와 크리에이터 수수료는 컨트랙트에 지불되고, 관리자는 거기서 ETH를 `withdraw`할 수 있으므로 관리자는 신뢰해야 하는 주체입니다. 스펙은 기부된 ETH가 크리에이터에게 어떻게 전달되는지 자세히 설명하지 않으니 구현을 확인하세요.\n- 스펙은 `safeMint`, `withdraw`, `donate`에 재진입 방지를 적용할 것을 권장합니다.\n"},"zh":{"lang":"zh","tldr":"面向协作式 NFT 系列的 ERC-721 扩展：付费的创作者角色、在一个周期内铸造越多则铸造费越低、向创作者捐赠，以及只能按固定间隔修改的管理员条款。","tags":["nft","erc-721","creators","fees","governance"],"related":[721,165],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-7832/","markdown":"## 它解决什么问题？\n\n有些 NFT 系列是由许多创作者而不是一位艺术家共同打造的。运营这类系列会反复遇到一些问题：谁可以铸造，如何给铸造定价以免少数账户淹没供应，支持者如何直接资助创作者，以及如何防止管理员随时修改费用。\n\nERC-7832 在 [ERC-721](/eip-721/) 之上，把这些问题的答案打包进一个接口。\n\n## 它如何运作\n\n**角色。** 三个角色标识：`ADMIN_ROLE`、`CREATOR_ROLE` 和 `CONTRIBUTOR_ROLE`。部署者在构造函数中获得管理员和创作者角色。\n\n- 任何人都可以通过调用 `getCreatorSignature()` 并支付 `creatorSignatureFee` 成为创作者。\n- 任何人（创作者本人除外）都可以向某位创作者 `donate(creator)` ETH；捐赠者获得 `CONTRIBUTOR_ROLE`，并触发 `DonationReceived` 事件。\n\n**铸造。** 只有创作者调用 `safeMint(uri)`，并支付 `mintFee()`：\n\n- 管理员免费铸造。\n- 否则，费用是 `mintBaseFee` 除以调用者在当前周期内已铸造次数的对数（参考实现中为 log2），因此重复铸造会逐渐变便宜。\n- 当创作者超过 `maxMintsPerUserInCycle` 时，其计数器重置，折扣重新开始。\n\n**稳定的条款。** 管理员通过 `updateTerms` 设置 `mintBaseFee`、`creatorSignatureFee` 和 `maxMintsPerUserInCycle`，先在构造函数中设置，之后每个 `UPDATE_INTERVAL` 最多一次。规范建议至少 720 小时（30 天）。每次修改都会触发 `CreatorTermsUpdated`。\n\n**管理员控制。** `pause`/`unpause`，以及用于提取合约所持资金的 `withdraw(amount)`。代币所有者可以 `burn` 自己的代币。\n\n## 示例代码\n\n接口的核心部分（摘自规范）：\n\n```solidity\n// SPDX-License-Identifier: CC0-1.0\npragma solidity ^0.8.20;\n\nimport {IERC721} from \"@openzeppelin/contracts/token/ERC721/IERC721.sol\";\n\ninterface IERC7832 is IERC721 {\n    event CreatorTermsUpdated(uint256 mintBaseFee, uint256 creatorSignatureFee, uint256 maxMintsPerUserInCycle);\n    event DonationReceived(address from, address to, uint256 amount);\n\n    function mintBaseFee() external view returns (uint256);\n    function creatorSignatureFee() external view returns (uint256);\n    function maxMintsPerUserInCycle() external view returns (uint256);\n    function mintsPerUserInCycle(address user) external view returns (uint256);\n    function mintFee() external view returns (uint256);\n    function UPDATE_INTERVAL() external pure returns (uint256);\n\n    function getCreatorSignature() external payable;\n    function safeMint(string memory uri) external payable;\n    function donate(address creator) external payable;\n    function updateTerms(uint256 mintBaseFee, uint256 creatorSignatureFee, uint256 maxMintsPerUserInCycle) external;\n    function withdraw(uint256 amount) external;\n    function burn(uint256 tokenId) external;\n    function pause() external;\n    function unpause() external;\n}\n```\n\n参考实现中的费用计算（OpenZeppelin `Math.log2`）：\n\n```solidity\nfunction mintFee() public view returns (uint256) {\n    if (hasRole(ADMIN_ROLE, msg.sender)) return 0;\n    uint256 userMints = mintsPerUserInCycle[msg.sender];\n    uint256 divisor = userMints \u003c= 1 ? 1 : Math.log2(userMints);\n    return mintBaseFee / divisor;\n}\n```\n\n## 需要注意\n\n- 状态为 **Review**，因此细节仍可能改变。\n- 整数 `log2` 向下取整：之前铸造 2 次或 3 次时除数为 1，所以第一次真正的折扣出现在第 4 次铸造（半价）。\n- \"创作者签名（creator signature）\"是一种付费授予角色的方式，而不是密码学签名。\n- 铸造费和创作者费都支付给合约，管理员可以从中 `withdraw` ETH，所以管理员是受信任的一方。规范没有详述捐赠的 ETH 如何到达创作者；请查看具体实现。\n- 规范建议对 `safeMint`、`withdraw` 和 `donate` 做重入保护。\n"}}}
