{"eip":7409,"title":"Public Non-Fungible Tokens Emote Repository","description":"React to any Non-Fungible Tokens using Unicode emojis.","authors":["Bruno Škvorc (@Swader)","Steven Pineda (@steven2308)","Stevan Bogosavljevic (@stevyhacker)","Jan Turk (@ThunderDeliverer)"],"status":"Final","type":"Standards Track","category":"ERC","created":"2023-07-26","requires":[165],"discussionsTo":"https://ethereum-magicians.org/t/eip-6381-emotable-extension-for-non-fungible-tokens/12710","repo":"ERCs","label":"ERC-7409","officialUrl":"https://eips.ethereum.org/EIPS/eip-7409","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-7409.md","url":"https://eips.huatuo.xyz/eip-7409/","tldr":{"en":"A single public repository contract where anyone can react to any NFT with a Unicode emoji, giving every collection, old or new, on-chain likes and reactions without changing its own code.","ja":"誰でも任意の NFT に Unicode 絵文字でリアクションできる単一の公開リポジトリコントラクト。新旧を問わずすべてのコレクションに、コレクション自身のコードを変えずにオンチェーンの「いいね」やリアクションをもたらす。","ko":"누구나 어떤 NFT에든 유니코드 이모지로 반응할 수 있는 단일 공개 저장소 컨트랙트. 새것이든 오래된 것이든 모든 컬렉션이 자체 코드를 바꾸지 않고도 온체인 좋아요와 반응을 갖게 한다.","zh":"一个单一的公共仓库合约，任何人都可以用 Unicode 表情符号对任意 NFT 做出反应，让每个合集（无论新旧）都能获得链上的点赞和反应，而无需修改自身代码。"},"tags":["nft","social","reactions","emoji","erc721"],"explainers":{"en":{"lang":"en","tldr":"A single public repository contract where anyone can react to any NFT with a Unicode emoji, giving every collection, old or new, on-chain likes and reactions without changing its own code.","tags":["nft","social","reactions","emoji","erc721"],"related":[6381,721,1155,165],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-7409/","markdown":"## What problem does it solve?\n\nPeople want to react to NFTs the way they react to posts: likes, hearts, fire emojis. Today that happens off-chain on individual marketplaces, so reactions are siloed, easy to fake and invisible to the NFT contract itself.\n\nERC-7409 puts reactions on-chain in one shared, permissionless repository. Because the repository is separate from the collection, it works for any [ERC-721](/eip-721/) or [ERC-1155](/eip-1155/) token, including collections deployed long before the standard existed. Collections can then build mechanics on top, such as a token that evolves after collecting enough reactions.\n\nIt supersedes [ERC-6381](/eip-6381/), which stored emojis as `bytes4`. Emojis with skin tones and variation selectors do not fit in 4 bytes, so ERC-7409 uses `string` instead. Otherwise the two are functionally the same.\n\n## How it works\n\nThe repository stores, per `(collection, tokenId, emoji)`, a count and which addresses have used that emoji.\n\n- `emote(collection, tokenId, emoji, state)` adds (`true`) or removes (`false`) your reaction. Each address can have at most one active reaction per emoji per token. Setting an existing state does nothing.\n- `emoteCountOf(collection, tokenId, emoji)` returns the count; `hasEmoterUsedEmote` checks one address.\n- `bulkEmote`, `bulkEmoteCountOf` and `haveEmotersUsedEmotes` do the same for many tokens at once.\n- `presignedEmote` lets someone else submit your reaction using your ECDSA signature over `(DOMAIN_SEPARATOR, collection, tokenId, emoji, state, deadline)`. The domain separator includes the chain id and repository address, so signatures cannot be replayed on another chain.\n- Every state change emits `Emoted(emoter, collection, tokenId, emoji, on)`.\n\nThe repository does not check that the token exists. The spec defines a vanity address starting with `0x3110735` (\"EMOTES\") intended to be the same on every chain: `0x3110735F0b8e71455bAe1356a33e428843bCb9A1`. Its ERC-165 interface id is `0x1b3327ab`.\n\n## Sample code\n\nInterface excerpt:\n\n```solidity\n// SPDX-License-Identifier: CC0-1.0\npragma solidity ^0.8.16;\n\ninterface IERC7409 {\n    event Emoted(address indexed emoter, address indexed collection, uint256 indexed tokenId, string emoji, bool on);\n\n    function emoteCountOf(address collection, uint256 tokenId, string memory emoji) external view returns (uint256);\n    function hasEmoterUsedEmote(address emoter, address collection, uint256 tokenId, string memory emoji) external view returns (bool);\n    function emote(address collection, uint256 tokenId, string memory emoji, bool state) external;\n}\n```\n\nReacting and reading the count (ethers v6):\n\n```ts\nimport { Contract } from \"ethers\";\n\nconst repo = new Contract(\n  \"0x3110735F0b8e71455bAe1356a33e428843bCb9A1\",\n  [\n    \"function emote(address,uint256,string,bool)\",\n    \"function emoteCountOf(address,uint256,string) view returns (uint256)\",\n  ],\n  signer,\n);\n\nawait (await repo.emote(collection, 42n, \"🔥\", true)).wait();\nconsole.log(await repo.emoteCountOf(collection, 42n, \"🔥\"));\n```\n\n## Things to know\n\n- Status is Final.\n- Before relying on the fixed address, confirm the repository is actually deployed on the chain you use.\n- The `emoji` field is any string. Unicode emojis are encouraged, but custom values are allowed; front ends must decide how to render them. Different byte sequences for visually similar emojis count separately.\n- A presigned message stays valid until its deadline and can be replayed to re-add a reaction you later removed. Use short deadlines.\n- Reactions are free to give (gas aside) and one per address, so counts measure addresses, not people. Treat them as a soft signal.\n"},"ja":{"lang":"ja","tldr":"誰でも任意の NFT に Unicode 絵文字でリアクションできる単一の公開リポジトリコントラクト。新旧を問わずすべてのコレクションに、コレクション自身のコードを変えずにオンチェーンの「いいね」やリアクションをもたらす。","tags":["nft","social","reactions","emoji","erc721"],"related":[6381,721,1155,165],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-7409/","markdown":"## 何を解決するのか\n\n人々は、投稿に反応するのと同じように NFT にも反応したいと考えます。いいね、ハート、炎の絵文字などです。現状それは個々のマーケットプレイス上でオフチェーンに行われるため、リアクションは分断され、偽装しやすく、NFT コントラクト自身からは見えません。\n\nERC-7409 は、リアクションを 1 つの共有されたパーミッションレスなリポジトリにオンチェーンで置きます。リポジトリはコレクションとは別物なので、この標準が存在するずっと前にデプロイされたコレクションを含め、あらゆる [ERC-721](/eip-721/) や [ERC-1155](/eip-1155/) トークンで機能します。コレクション側はその上にさまざまな仕組みを作れます。たとえば、一定数のリアクションを集めると進化するトークンなどです。\n\nこれは、絵文字を `bytes4` として保存していた [ERC-6381](/eip-6381/) を置き換えるものです。肌の色や異体字セレクタを含む絵文字は 4 バイトに収まらないため、ERC-7409 は `string` を使います。それ以外は両者の機能は同じです。\n\n## 仕組み\n\nリポジトリは、`(collection, tokenId, emoji)` ごとに、カウントと、その絵文字を使ったアドレスを保存します。\n\n- `emote(collection, tokenId, emoji, state)` は、リアクションを追加（`true`）または削除（`false`）します。各アドレスは、トークンごと・絵文字ごとに有効なリアクションを最大 1 つまで持てます。すでにある状態を設定しても何も起きません。\n- `emoteCountOf(collection, tokenId, emoji)` はカウントを返し、`hasEmoterUsedEmote` は 1 つのアドレスについて確認します。\n- `bulkEmote`、`bulkEmoteCountOf`、`haveEmotersUsedEmotes` は、多数のトークンに対して同じことを一度に行います。\n- `presignedEmote` を使うと、`(DOMAIN_SEPARATOR, collection, tokenId, emoji, state, deadline)` に対するあなたの ECDSA 署名を使って、他の誰かがあなたのリアクションを送信できます。ドメインセパレーターにはチェーン ID とリポジトリのアドレスが含まれるため、署名を別のチェーンでリプレイすることはできません。\n- 状態が変わるたびに `Emoted(emoter, collection, tokenId, emoji, on)` が emit されます。\n\nリポジトリは、トークンが存在するかどうかを確認しません。仕様は、すべてのチェーンで同一になることを意図した、`0x3110735`（「EMOTES」）で始まるバニティアドレス `0x3110735F0b8e71455bAe1356a33e428843bCb9A1` を定義しています。ERC-165 のインターフェース ID は `0x1b3327ab` です。\n\n## サンプルコード\n\nインターフェースの抜粋:\n\n```solidity\n// SPDX-License-Identifier: CC0-1.0\npragma solidity ^0.8.16;\n\ninterface IERC7409 {\n    event Emoted(address indexed emoter, address indexed collection, uint256 indexed tokenId, string emoji, bool on);\n\n    function emoteCountOf(address collection, uint256 tokenId, string memory emoji) external view returns (uint256);\n    function hasEmoterUsedEmote(address emoter, address collection, uint256 tokenId, string memory emoji) external view returns (bool);\n    function emote(address collection, uint256 tokenId, string memory emoji, bool state) external;\n}\n```\n\nリアクションしてカウントを読み取る（ethers v6）:\n\n```ts\nimport { Contract } from \"ethers\";\n\nconst repo = new Contract(\n  \"0x3110735F0b8e71455bAe1356a33e428843bCb9A1\",\n  [\n    \"function emote(address,uint256,string,bool)\",\n    \"function emoteCountOf(address,uint256,string) view returns (uint256)\",\n  ],\n  signer,\n);\n\nawait (await repo.emote(collection, 42n, \"🔥\", true)).wait();\nconsole.log(await repo.emoteCountOf(collection, 42n, \"🔥\"));\n```\n\n## 知っておくべきこと\n\n- ステータスは Final です。\n- 固定アドレスに頼る前に、リポジトリが利用するチェーンに実際にデプロイされているか確認してください。\n- `emoji` フィールドは任意の文字列です。Unicode 絵文字が推奨されますが、独自の値も許されており、フロントエンドはそれをどう表示するか決める必要があります。見た目が似ている絵文字でもバイト列が異なれば、別々にカウントされます。\n- 署名済みメッセージは期限まで有効で、あとで削除したリアクションを再び追加するためにリプレイされる可能性があります。期限は短くしてください。\n- リアクションは無料で（ガス代を除く）、1 アドレスにつき 1 つなので、カウントが測るのは人ではなくアドレスです。ゆるやかなシグナルとして扱ってください。\n"},"ko":{"lang":"ko","tldr":"누구나 어떤 NFT에든 유니코드 이모지로 반응할 수 있는 단일 공개 저장소 컨트랙트. 새것이든 오래된 것이든 모든 컬렉션이 자체 코드를 바꾸지 않고도 온체인 좋아요와 반응을 갖게 한다.","tags":["nft","social","reactions","emoji","erc721"],"related":[6381,721,1155,165],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-7409/","markdown":"## 어떤 문제를 해결하나요?\n\n사람들은 게시물에 반응하듯 NFT에도 반응하고 싶어 합니다. 좋아요, 하트, 불꽃 이모지 같은 것들입니다. 지금은 이런 반응이 개별 마켓플레이스의 오프체인에서 이루어지므로, 반응이 서로 분리되어 있고 조작하기 쉬우며 NFT 컨트랙트 자체는 볼 수 없습니다.\n\nERC-7409는 반응을 하나의 공유된 퍼미션리스 저장소에 온체인으로 올립니다. 저장소가 컬렉션과 분리되어 있으므로, 이 표준이 나오기 훨씬 전에 배포된 컬렉션을 포함해 모든 [ERC-721](/eip-721/) 또는 [ERC-1155](/eip-1155/) 토큰에서 동작합니다. 컬렉션은 그 위에 다양한 메커니즘을 만들 수 있습니다. 예를 들어 반응을 충분히 모으면 진화하는 토큰 같은 것입니다.\n\n이 표준은 이모지를 `bytes4`로 저장하던 [ERC-6381](/eip-6381/)을 대체합니다. 피부색이나 변형 선택자가 있는 이모지는 4바이트에 들어가지 않으므로 ERC-7409는 `string`을 사용합니다. 그 외에는 두 표준이 기능적으로 같습니다.\n\n## 어떻게 동작하나요?\n\n저장소는 `(collection, tokenId, emoji)`마다 카운트와 그 이모지를 사용한 주소를 저장합니다.\n\n- `emote(collection, tokenId, emoji, state)`는 반응을 추가(`true`)하거나 제거(`false`)합니다. 각 주소는 토큰당 이모지당 활성 반응을 최대 하나만 가질 수 있습니다. 이미 있는 상태로 설정하면 아무 일도 일어나지 않습니다.\n- `emoteCountOf(collection, tokenId, emoji)`는 카운트를 반환하고, `hasEmoterUsedEmote`는 주소 하나를 확인합니다.\n- `bulkEmote`, `bulkEmoteCountOf`, `haveEmotersUsedEmotes`는 여러 토큰에 대해 같은 일을 한 번에 합니다.\n- `presignedEmote`를 쓰면 `(DOMAIN_SEPARATOR, collection, tokenId, emoji, state, deadline)`에 대한 여러분의 ECDSA 서명을 이용해 다른 사람이 여러분의 반응을 제출할 수 있습니다. 도메인 구분자에는 체인 id와 저장소 주소가 포함되므로 서명을 다른 체인에서 재사용(replay)할 수 없습니다.\n- 상태가 바뀔 때마다 `Emoted(emoter, collection, tokenId, emoji, on)`이 emit됩니다.\n\n저장소는 토큰이 존재하는지 확인하지 않습니다. 명세는 모든 체인에서 같도록 의도된, `0x3110735`(\"EMOTES\")로 시작하는 배니티 주소 `0x3110735F0b8e71455bAe1356a33e428843bCb9A1`를 정의합니다. ERC-165 인터페이스 id는 `0x1b3327ab`입니다.\n\n## 샘플 코드\n\n인터페이스 발췌:\n\n```solidity\n// SPDX-License-Identifier: CC0-1.0\npragma solidity ^0.8.16;\n\ninterface IERC7409 {\n    event Emoted(address indexed emoter, address indexed collection, uint256 indexed tokenId, string emoji, bool on);\n\n    function emoteCountOf(address collection, uint256 tokenId, string memory emoji) external view returns (uint256);\n    function hasEmoterUsedEmote(address emoter, address collection, uint256 tokenId, string memory emoji) external view returns (bool);\n    function emote(address collection, uint256 tokenId, string memory emoji, bool state) external;\n}\n```\n\n반응하고 카운트 읽기(ethers v6):\n\n```ts\nimport { Contract } from \"ethers\";\n\nconst repo = new Contract(\n  \"0x3110735F0b8e71455bAe1356a33e428843bCb9A1\",\n  [\n    \"function emote(address,uint256,string,bool)\",\n    \"function emoteCountOf(address,uint256,string) view returns (uint256)\",\n  ],\n  signer,\n);\n\nawait (await repo.emote(collection, 42n, \"🔥\", true)).wait();\nconsole.log(await repo.emoteCountOf(collection, 42n, \"🔥\"));\n```\n\n## 알아둘 점\n\n- 상태는 Final입니다.\n- 고정 주소에 의존하기 전에, 사용하는 체인에 저장소가 실제로 배포되어 있는지 확인하세요.\n- `emoji` 필드는 임의의 문자열입니다. 유니코드 이모지를 권장하지만 사용자 지정 값도 허용되며, 이를 어떻게 렌더링할지는 프런트엔드가 정해야 합니다. 겉보기에 비슷한 이모지라도 바이트 시퀀스가 다르면 따로 집계됩니다.\n- 사전 서명된 메시지는 마감 시간까지 유효하며, 나중에 제거한 반응을 다시 추가하도록 재사용될 수 있습니다. 마감 시간은 짧게 잡으세요.\n- 반응은 (gas를 제외하면) 무료로 줄 수 있고 주소당 하나뿐이므로, 카운트가 세는 것은 사람이 아니라 주소입니다. 약한 신호로 취급하세요.\n"},"zh":{"lang":"zh","tldr":"一个单一的公共仓库合约，任何人都可以用 Unicode 表情符号对任意 NFT 做出反应，让每个合集（无论新旧）都能获得链上的点赞和反应，而无需修改自身代码。","tags":["nft","social","reactions","emoji","erc721"],"related":[6381,721,1155,165],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-7409/","markdown":"## 它解决什么问题？\n\n人们希望像对待帖子一样对 NFT 做出反应：点赞、爱心、火焰表情。如今这些都发生在各个市场的链下，因此反应彼此割裂，容易伪造，NFT 合约本身也看不到。\n\nERC-7409 把反应放到一个共享的、无需许可的链上仓库中。由于仓库与合集是分开的，它适用于任何 [ERC-721](/eip-721/) 或 [ERC-1155](/eip-1155/) 代币，包括在该标准出现之前很久就已部署的合集。合集随后可以在此基础上构建各种机制，例如收集到足够多反应后会进化的代币。\n\n它取代了 [ERC-6381](/eip-6381/)，后者把表情符号存储为 `bytes4`。带肤色和变体选择符的表情符号放不进 4 个字节，所以 ERC-7409 改用 `string`。除此之外，两者在功能上是一样的。\n\n## 它如何运作\n\n仓库针对每个 `(collection, tokenId, emoji)` 存储一个计数，以及哪些地址使用过该表情。\n\n- `emote(collection, tokenId, emoji, state)` 添加（`true`）或移除（`false`）你的反应。每个地址对每个代币的每个表情最多只能有一个有效反应。设置为已有的状态不会产生任何效果。\n- `emoteCountOf(collection, tokenId, emoji)` 返回计数；`hasEmoterUsedEmote` 检查某一个地址。\n- `bulkEmote`、`bulkEmoteCountOf` 和 `haveEmotersUsedEmotes` 对多个代币一次性完成同样的操作。\n- `presignedEmote` 允许他人使用你对 `(DOMAIN_SEPARATOR, collection, tokenId, emoji, state, deadline)` 的 ECDSA 签名来提交你的反应。domain separator 包含链 ID 和仓库地址，因此签名无法在另一条链上重放。\n- 每次状态变化都会触发 `Emoted(emoter, collection, tokenId, emoji, on)`。\n\n仓库不会检查代币是否存在。规范定义了一个以 `0x3110735`（\"EMOTES\"）开头的靓号地址，目标是在每条链上都相同：`0x3110735F0b8e71455bAe1356a33e428843bCb9A1`。它的 ERC-165 接口 id 是 `0x1b3327ab`。\n\n## 示例代码\n\n接口节选：\n\n```solidity\n// SPDX-License-Identifier: CC0-1.0\npragma solidity ^0.8.16;\n\ninterface IERC7409 {\n    event Emoted(address indexed emoter, address indexed collection, uint256 indexed tokenId, string emoji, bool on);\n\n    function emoteCountOf(address collection, uint256 tokenId, string memory emoji) external view returns (uint256);\n    function hasEmoterUsedEmote(address emoter, address collection, uint256 tokenId, string memory emoji) external view returns (bool);\n    function emote(address collection, uint256 tokenId, string memory emoji, bool state) external;\n}\n```\n\n做出反应并读取计数（ethers v6）：\n\n```ts\nimport { Contract } from \"ethers\";\n\nconst repo = new Contract(\n  \"0x3110735F0b8e71455bAe1356a33e428843bCb9A1\",\n  [\n    \"function emote(address,uint256,string,bool)\",\n    \"function emoteCountOf(address,uint256,string) view returns (uint256)\",\n  ],\n  signer,\n);\n\nawait (await repo.emote(collection, 42n, \"🔥\", true)).wait();\nconsole.log(await repo.emoteCountOf(collection, 42n, \"🔥\"));\n```\n\n## 需要注意\n\n- 状态为 Final。\n- 在依赖这个固定地址之前，请确认仓库确实已部署在你使用的链上。\n- `emoji` 字段可以是任意字符串。鼓励使用 Unicode 表情符号，但也允许自定义值；前端必须自行决定如何渲染它们。视觉上相似的表情符号如果字节序列不同，会被分开计数。\n- 预签名消息在截止时间之前一直有效，可能被重放，从而重新添加你之后已移除的反应。请使用较短的截止时间。\n- 反应可以免费发出（gas 除外），且每个地址只能一个，因此计数衡量的是地址而不是人。请把它当作一个弱信号。\n"}}}
