{"eip":6105,"title":"No Intermediary NFT Trading Protocol","description":"Adds a marketplace functionality with more diverse royalty schemes to ERC-721","authors":["5660-eth (@5660-eth)","Silvere Heraudeau (@lambdalf-dev)","Martin McConnell (@offgridgecko)","Abu \u003cteam10kuni@gmail.com\u003e","Wizard Wang"],"status":"Final","type":"Standards Track","category":"ERC","created":"2022-12-02","requires":[20,165,721,2981],"discussionsTo":"https://ethereum-magicians.org/t/eip6105-no-intermediary-nft-trading-protocol/12171","repo":"ERCs","label":"ERC-6105","officialUrl":"https://eips.ethereum.org/EIPS/eip-6105","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-6105.md","url":"https://eips.huatuo.xyz/eip-6105/","tldr":{"en":"Builds a marketplace directly into an ERC-721 contract, so NFTs can be listed, bought and offered on without a third-party exchange and with creator-defined royalty schemes.","ja":"ERC-721 コントラクトにマーケットプレイスを直接組み込み、サードパーティの取引所なしで、クリエイターが定義したロイヤリティの仕組みとともに、NFT の出品・購入・オファーができるようにする。","ko":"ERC-721 컨트랙트에 마켓플레이스를 직접 내장해, 제3자 거래소 없이 NFT를 등록하고 구매하고 제안할 수 있게 하며 창작자가 정의한 로열티 방식을 쓴다.","zh":"把交易市场直接内置到 ERC-721 合约中，使 NFT 无需第三方交易所即可挂单、购买和出价，并采用创作者定义的版税方案。"},"tags":["nft","marketplace","royalties","erc721","trading"],"explainers":{"en":{"lang":"en","tldr":"Builds a marketplace directly into an ERC-721 contract, so NFTs can be listed, bought and offered on without a third-party exchange and with creator-defined royalty schemes.","tags":["nft","marketplace","royalties","erc721","trading"],"related":[721,2981,20,165],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-6105/","markdown":"## What problem does it solve?\n\nSelling an NFT usually means giving a marketplace contract `setApprovalForAll` over your whole collection. That approval is a standing risk: a marketplace bug or a phishing signature can drain it. Liquidity is also split across platforms, each charging fees, and each platform decides on its own whether to honor creator royalties or delist items.\n\nERC-6105 puts the trading logic inside the NFT contract itself. Owners list directly on the token contract, buyers pay the contract, and the contract enforces whatever royalty rule the creator chose. No intermediary needs approval over your tokens.\n\n## How it works\n\nThe core interface `IERC6105` adds:\n\n- **`listItem(tokenId, salePrice, expires, supportedToken[, benchmarkPrice])`**: list or update a listing. `salePrice` must be non-zero, `expires` is a UNIX timestamp, and `supportedToken` is an [ERC-20](/eip-20/) address or the zero address for ETH.\n- **`delistItem(tokenId)`**: remove the listing.\n- **`buyItem(tokenId, salePrice, supportedToken)`**: payable. The buyer passes the price and token they expect, and the call must fail if they don't match the listing. This prevents a seller from front-running a purchase with a price change.\n- **`getListing(tokenId)`**: returns `(salePrice, expires, supportedToken, benchmarkPrice)`. A zero price or expiry means not for sale.\n- Events **`UpdateListing`** and **`Purchased`** (which reports royalties paid).\n\nTwo optional extensions add buyer-side orders: **collection offers** (`makeCollectionOffer`, `acceptCollectionOffer`, …: \"I'll buy N tokens from this collection at X each\") and **item offers** (`makeItemOffer`, `acceptItemOffer`, …) for a specific token. Offers are paid in ERC-20 tokens the buyer has approved to the NFT contract.\n\n**Royalties** use [ERC-2981](/eip-2981/)'s `royaltyInfo`, but the optional `benchmarkPrice` lets an implementation compute royalties on a \"taxable price\" other than the sale price. Examples from the spec: royalty only on profit over the previous price, a capped price, or a fixed amount per trade.\n\n## Sample code\n\nListing for 1 ETH and buying (ethers v6):\n\n```ts\nimport { Contract, parseEther, ZeroAddress } from \"ethers\";\n\nconst abi = [\n  \"function listItem(uint256,uint256,uint64,address)\",\n  \"function getListing(uint256) view returns (uint256,uint64,address,uint256)\",\n  \"function buyItem(uint256,uint256,address) payable\",\n];\n\n// Seller (owner or approved)\nconst nftSeller = new Contract(NFT_ADDRESS, abi, sellerSigner);\nconst expires = BigInt(Math.floor(Date.now() / 1000) + 7 * 24 * 3600);\nawait (await nftSeller.listItem(42n, parseEther(\"1\"), expires, ZeroAddress)).wait();\n\n// Buyer: read the listing, then pass the same price/token back\nconst nftBuyer = new Contract(NFT_ADDRESS, abi, buyerSigner);\nconst [price, , token] = await nftBuyer.getListing(42n);\nawait (await nftBuyer.buyItem(42n, price, token, { value: price })).wait();\n```\n\n## Things to know\n\n- **Status: Final.** It is compatible with ERC-721 and ERC-2981; the NFT still trades on ordinary marketplaces unless the creator adds a blocklist, which the standard does not define.\n- Always pass the expected `salePrice` and `supportedToken` to `buyItem` / `accept*Offer`; that check is the front-running protection.\n- `acceptCollectionOffer` and `acceptItemOffer` move tokens and funds, so implementations must follow checks-effects-interactions or use a reentrancy guard.\n- Buyers making ERC-20 offers must approve the NFT contract. Approve only what the offer needs.\n"},"ja":{"lang":"ja","tldr":"ERC-721 コントラクトにマーケットプレイスを直接組み込み、サードパーティの取引所なしで、クリエイターが定義したロイヤリティの仕組みとともに、NFT の出品・購入・オファーができるようにする。","tags":["nft","marketplace","royalties","erc721","trading"],"related":[721,2981,20,165],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-6105/","markdown":"## 何を解決するのか\n\nNFT を売るには、通常、マーケットプレイスのコントラクトにコレクション全体への `setApprovalForAll` を与える必要があります。その承認は常時のリスクです。マーケットプレイスのバグやフィッシング署名で、すべてを抜き取られかねません。流動性もプラットフォームごとに分断され、それぞれが手数料を取り、クリエイターのロイヤリティを守るか、アイテムを出品取り下げにするかも、各プラットフォームが独自に決めます。\n\nERC-6105 は、取引ロジックを NFT コントラクト自体の中に置きます。オーナーはトークンのコントラクトに直接出品し、買い手はコントラクトに支払い、コントラクトはクリエイターが選んだロイヤリティのルールを強制します。トークンに対する承認を必要とする仲介者はいません。\n\n## 仕組み\n\nコアインターフェース `IERC6105` は次のものを追加します。\n\n- **`listItem(tokenId, salePrice, expires, supportedToken[, benchmarkPrice])`**: 出品または出品の更新。`salePrice` は 0 であってはならず、`expires` は UNIX タイムスタンプ、`supportedToken` は [ERC-20](/eip-20/) のアドレス、ETH の場合はゼロアドレスです。\n- **`delistItem(tokenId)`**: 出品を取り下げます。\n- **`buyItem(tokenId, salePrice, supportedToken)`**: payable。買い手は期待する価格とトークンを渡し、出品内容と一致しない場合、呼び出しは失敗しなければなりません。これにより、売り手が価格変更で購入をフロントランニングするのを防ぎます。\n- **`getListing(tokenId)`**: `(salePrice, expires, supportedToken, benchmarkPrice)` を返します。価格または有効期限が 0 なら、販売中ではありません。\n- イベント **`UpdateListing`** と **`Purchased`**（支払われたロイヤリティを報告します）。\n\n2 つの任意の拡張が、買い手側の注文を追加します。**コレクションオファー**（`makeCollectionOffer`、`acceptCollectionOffer` など。「このコレクションからトークンを N 個、1 つあたり X で買う」）と、特定のトークンに対する**アイテムオファー**（`makeItemOffer`、`acceptItemOffer` など）です。オファーは、買い手が NFT コントラクトに承認した ERC-20 トークンで支払われます。\n\n**ロイヤリティ** は [ERC-2981](/eip-2981/) の `royaltyInfo` を使いますが、任意の `benchmarkPrice` により、実装は販売価格とは別の「課税対象価格」でロイヤリティを計算できます。仕様の例: 前回価格を超えた利益にのみロイヤリティをかける、上限付きの価格、取引ごとの固定額。\n\n## サンプルコード\n\n1 ETH で出品して購入する（ethers v6）:\n\n```ts\nimport { Contract, parseEther, ZeroAddress } from \"ethers\";\n\nconst abi = [\n  \"function listItem(uint256,uint256,uint64,address)\",\n  \"function getListing(uint256) view returns (uint256,uint64,address,uint256)\",\n  \"function buyItem(uint256,uint256,address) payable\",\n];\n\n// Seller (owner or approved)\nconst nftSeller = new Contract(NFT_ADDRESS, abi, sellerSigner);\nconst expires = BigInt(Math.floor(Date.now() / 1000) + 7 * 24 * 3600);\nawait (await nftSeller.listItem(42n, parseEther(\"1\"), expires, ZeroAddress)).wait();\n\n// Buyer: read the listing, then pass the same price/token back\nconst nftBuyer = new Contract(NFT_ADDRESS, abi, buyerSigner);\nconst [price, , token] = await nftBuyer.getListing(42n);\nawait (await nftBuyer.buyItem(42n, price, token, { value: price })).wait();\n```\n\n## 知っておくべきこと\n\n- **ステータス: Final。** ERC-721 および ERC-2981 と互換性があります。クリエイターがブロックリストを追加しない限り（標準は定義していません）、NFT は通常のマーケットプレイスでも取引されます。\n- `buyItem` / `accept*Offer` には、必ず期待する `salePrice` と `supportedToken` を渡してください。このチェックがフロントランニング対策です。\n- `acceptCollectionOffer` と `acceptItemOffer` はトークンと資金を動かすため、実装は checks-effects-interactions に従うか、リエントランシーガードを使わなければなりません。\n- ERC-20 でオファーを出す買い手は、NFT コントラクトを承認する必要があります。オファーに必要な分だけを承認してください。\n"},"ko":{"lang":"ko","tldr":"ERC-721 컨트랙트에 마켓플레이스를 직접 내장해, 제3자 거래소 없이 NFT를 등록하고 구매하고 제안할 수 있게 하며 창작자가 정의한 로열티 방식을 쓴다.","tags":["nft","marketplace","royalties","erc721","trading"],"related":[721,2981,20,165],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-6105/","markdown":"## 어떤 문제를 해결하나요?\n\nNFT를 팔려면 보통 마켓플레이스 컨트랙트에 컬렉션 전체에 대한 `setApprovalForAll`을 줘야 합니다. 그 승인은 상시적인 위험입니다. 마켓플레이스의 버그나 피싱 서명으로 모든 것이 털릴 수 있습니다. 유동성도 플랫폼별로 나뉘고, 각 플랫폼이 수수료를 받으며, 창작자 로열티를 지킬지 아이템을 등록 해제할지도 플랫폼이 각자 결정합니다.\n\nERC-6105는 거래 로직을 NFT 컨트랙트 자체에 넣습니다. 소유자는 토큰 컨트랙트에 직접 등록하고, 구매자는 컨트랙트에 결제하며, 컨트랙트는 창작자가 선택한 로열티 규칙을 강제합니다. 여러분의 토큰에 대한 승인을 필요로 하는 중개자가 없습니다.\n\n## 어떻게 동작하나요?\n\n코어 인터페이스 `IERC6105`는 다음을 추가합니다.\n\n- **`listItem(tokenId, salePrice, expires, supportedToken[, benchmarkPrice])`**: 등록하거나 등록 내용을 갱신합니다. `salePrice`는 0이 아니어야 하고, `expires`는 UNIX 타임스탬프이며, `supportedToken`은 [ERC-20](/eip-20/) 주소 또는 ETH를 뜻하는 영 주소입니다.\n- **`delistItem(tokenId)`**: 등록을 제거합니다.\n- **`buyItem(tokenId, salePrice, supportedToken)`**: payable. 구매자가 기대하는 가격과 토큰을 넘기며, 등록 내용과 맞지 않으면 호출은 실패해야 합니다. 이는 판매자가 가격을 바꿔 구매를 프런트러닝하는 것을 막습니다.\n- **`getListing(tokenId)`**: `(salePrice, expires, supportedToken, benchmarkPrice)`를 반환합니다. 가격이나 만료 시각이 0이면 판매 중이 아닙니다.\n- 이벤트 **`UpdateListing`**과 **`Purchased`**(지급된 로열티를 보고).\n\n두 가지 선택적 확장이 구매자 측 주문을 추가합니다. **컬렉션 제안**(`makeCollectionOffer`, `acceptCollectionOffer` 등: \"이 컬렉션에서 개당 X에 N개를 사겠다\")과 특정 토큰에 대한 **아이템 제안**(`makeItemOffer`, `acceptItemOffer` 등)입니다. 제안은 구매자가 NFT 컨트랙트에 승인한 ERC-20 토큰으로 결제됩니다.\n\n**로열티**는 [ERC-2981](/eip-2981/)의 `royaltyInfo`를 사용하지만, 선택적인 `benchmarkPrice`를 통해 구현이 판매 가격이 아닌 \"과세 가격\"을 기준으로 로열티를 계산할 수 있습니다. 명세의 예: 이전 가격을 넘는 이익에만 로열티 부과, 상한이 있는 가격, 거래당 고정 금액.\n\n## 샘플 코드\n\n1 ETH에 등록하고 구매하기(ethers v6):\n\n```ts\nimport { Contract, parseEther, ZeroAddress } from \"ethers\";\n\nconst abi = [\n  \"function listItem(uint256,uint256,uint64,address)\",\n  \"function getListing(uint256) view returns (uint256,uint64,address,uint256)\",\n  \"function buyItem(uint256,uint256,address) payable\",\n];\n\n// Seller (owner or approved)\nconst nftSeller = new Contract(NFT_ADDRESS, abi, sellerSigner);\nconst expires = BigInt(Math.floor(Date.now() / 1000) + 7 * 24 * 3600);\nawait (await nftSeller.listItem(42n, parseEther(\"1\"), expires, ZeroAddress)).wait();\n\n// Buyer: read the listing, then pass the same price/token back\nconst nftBuyer = new Contract(NFT_ADDRESS, abi, buyerSigner);\nconst [price, , token] = await nftBuyer.getListing(42n);\nawait (await nftBuyer.buyItem(42n, price, token, { value: price })).wait();\n```\n\n## 알아둘 점\n\n- **상태: Final.** ERC-721 및 ERC-2981과 호환됩니다. 창작자가 차단 목록을 추가하지 않는 한(표준은 정의하지 않음) NFT는 일반 마켓플레이스에서도 거래됩니다.\n- `buyItem` / `accept*Offer`에는 항상 기대하는 `salePrice`와 `supportedToken`을 넘기세요. 이 확인이 프런트러닝 방어입니다.\n- `acceptCollectionOffer`와 `acceptItemOffer`는 토큰과 자금을 이동시키므로, 구현은 checks-effects-interactions 패턴을 따르거나 재진입 방지 가드를 써야 합니다.\n- ERC-20으로 제안하는 구매자는 NFT 컨트랙트를 승인해야 합니다. 제안에 필요한 만큼만 승인하세요.\n"},"zh":{"lang":"zh","tldr":"把交易市场直接内置到 ERC-721 合约中，使 NFT 无需第三方交易所即可挂单、购买和出价，并采用创作者定义的版税方案。","tags":["nft","marketplace","royalties","erc721","trading"],"related":[721,2981,20,165],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-6105/","markdown":"## 它解决什么问题？\n\n出售 NFT 通常意味着要让某个市场合约对你的整个合集拥有 `setApprovalForAll`。这种授权是一个长期存在的风险：市场的漏洞或一次钓鱼签名，都可能让它被掏空。流动性也被分散在各个平台上，每个平台都收取费用，并且各自决定是否遵守创作者版税，或是否下架商品。\n\nERC-6105 把交易逻辑放进 NFT 合约本身。所有者直接在代币合约上挂单，买家向合约付款，合约执行创作者选定的任何版税规则。没有哪个中间方需要对你的代币拥有授权。\n\n## 它如何运作\n\n核心接口 `IERC6105` 增加了：\n\n- **`listItem(tokenId, salePrice, expires, supportedToken[, benchmarkPrice])`**：挂单或更新挂单。`salePrice` 必须非零，`expires` 是 UNIX 时间戳，`supportedToken` 是 [ERC-20](/eip-20/) 地址，或者用零地址表示 ETH。\n- **`delistItem(tokenId)`**：移除挂单。\n- **`buyItem(tokenId, salePrice, supportedToken)`**：payable。买家传入其预期的价格和代币，如果与挂单不一致，调用必须失败。这可以防止卖家通过修改价格来抢跑一次购买。\n- **`getListing(tokenId)`**：返回 `(salePrice, expires, supportedToken, benchmarkPrice)`。价格或到期时间为零表示不出售。\n- 事件 **`UpdateListing`** 和 **`Purchased`**（后者会报告已支付的版税）。\n\n两个可选扩展增加了买方订单：**合集出价**（`makeCollectionOffer`、`acceptCollectionOffer` 等：\"我愿意以每个 X 的价格从这个合集买入 N 个代币\"）和针对特定代币的**单品出价**（`makeItemOffer`、`acceptItemOffer` 等）。出价以买家已授权给 NFT 合约的 ERC-20 代币支付。\n\n**版税**使用 [ERC-2981](/eip-2981/) 的 `royaltyInfo`，但可选的 `benchmarkPrice` 允许实现基于不同于成交价的\"计税价格\"来计算版税。规范中的例子：仅对高于上次价格的利润收取版税、有上限的价格，或每笔交易固定金额。\n\n## 示例代码\n\n以 1 ETH 挂单并购买（ethers v6）：\n\n```ts\nimport { Contract, parseEther, ZeroAddress } from \"ethers\";\n\nconst abi = [\n  \"function listItem(uint256,uint256,uint64,address)\",\n  \"function getListing(uint256) view returns (uint256,uint64,address,uint256)\",\n  \"function buyItem(uint256,uint256,address) payable\",\n];\n\n// Seller (owner or approved)\nconst nftSeller = new Contract(NFT_ADDRESS, abi, sellerSigner);\nconst expires = BigInt(Math.floor(Date.now() / 1000) + 7 * 24 * 3600);\nawait (await nftSeller.listItem(42n, parseEther(\"1\"), expires, ZeroAddress)).wait();\n\n// Buyer: read the listing, then pass the same price/token back\nconst nftBuyer = new Contract(NFT_ADDRESS, abi, buyerSigner);\nconst [price, , token] = await nftBuyer.getListing(42n);\nawait (await nftBuyer.buyItem(42n, price, token, { value: price })).wait();\n```\n\n## 需要注意\n\n- **状态：Final。** 它与 ERC-721 和 ERC-2981 兼容；除非创作者添加黑名单（标准并未定义），NFT 仍然可以在普通市场上交易。\n- 调用 `buyItem` / `accept*Offer` 时，务必传入预期的 `salePrice` 和 `supportedToken`；这项检查就是抢跑保护。\n- `acceptCollectionOffer` 和 `acceptItemOffer` 会转移代币和资金，因此实现必须遵循 checks-effects-interactions 模式，或使用重入保护。\n- 用 ERC-20 出价的买家必须授权 NFT 合约。只授权出价所需的数量。\n"}}}
