{"eip":6604,"title":"Abstract Token","description":"move tokens on- and off-chain as desired, enabling zero-cost minting while preserving on-chain composability","authors":["Chris Walker (@cr-walker) \u003cchris@ckwalker.com\u003e"],"status":"Draft","type":"Standards Track","category":"ERC","created":"2023-03-03","requires":[20,165,721,1155],"discussionsTo":"https://ethereum-magicians.org/t/draft-eip-abstract-token-standard/13152","repo":"ERCs","label":"ERC-6604","officialUrl":"https://eips.ethereum.org/EIPS/eip-6604","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-6604.md","url":"https://eips.huatuo.xyz/eip-6604/","tldr":{"en":"A draft standard for tokens that live off-chain as signed or proven messages and are \"reified\" on-chain only when needed, making large airdrops and credentials free to mint.","ja":"署名付きまたは証明付きのメッセージとしてオフチェーンに存在し、必要なときだけオンチェーンで「具現化（reify）」されるトークンのドラフト標準。大規模なエアドロップや資格証明をミント費用なしで配布できる。","ko":"서명되거나 증명된 메시지로 오프체인에 존재하다가 필요할 때만 온체인에서 \"구체화(reify)\"되는 토큰의 초안 표준. 대규모 에어드롭과 자격 증명을 민팅 비용 없이 배포할 수 있다.","zh":"一个草案标准：代币以签名或带证明的消息形式存在于链下，仅在需要时才在链上\"具现化（reify）\"，使大规模空投和凭证可以免费铸造。"},"tags":["token","airdrop","minting","off-chain","draft"],"explainers":{"en":{"lang":"en","tldr":"A draft standard for tokens that live off-chain as signed or proven messages and are \"reified\" on-chain only when needed, making large airdrops and credentials free to mint.","tags":["token","airdrop","minting","off-chain","draft"],"related":[20,721,1155,165],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-6604/","markdown":"## What problem does it solve?\n\nMinting costs gas. For high-volume, low-value distributions such as airdrops, POAP-style receipts or access credentials, paying to mint every token up front is wasteful, especially since many recipients never use them.\n\nProjects already work around this with Merkle-tree claims, but each claim contract has its own proof format and UI, and a wallet cannot tell a user \"you have these tokens waiting\" without bespoke integration.\n\nERC-6604 defines **abstract tokens**: a token can exist as an off-chain *message* that anyone can inspect, and becomes a normal on-chain [ERC-20](/eip-20/), [ERC-721](/eip-721/) or [ERC-1155](/eip-1155/) balance only when someone submits it.\n\n## How it works\n\n**Token message.** The off-chain form of a token:\n\n```solidity\nstruct AbstractTokenMessage {\n  uint256 chainId;        // where it can be reified\n  address implementation; // which contract\n  address owner;          // who receives it\n  bytes   meta;           // implementation-specific: id, amount, uri…\n  uint256 nonce;          // distinguishes otherwise-identical messages\n  bytes   proof;          // Merkle proof, signature, etc.\n}\n```\n\n**Core methods on the token contract:**\n\n- `reify(message)`: validates the proof and mints the tokens on-chain. Each message can be used at most once; emits `Reify`.\n- `status(message)`: returns `invalid`, `valid` or `used`, so a wallet can show pending tokens before anything is minted.\n- `dereify(message)` (optional): burns on-chain tokens and turns them back into a message for *another* contract or chain; emits `Dereify`.\n- `id`, `amount`, `uri` (optional): read what a message represents without parsing `meta`.\n\nThe contract must support [ERC-165](/eip-165/). Abstract versions of ERC-20/721/1155 add overloaded transfer functions that take a message as an extra argument, so a recipient can reify and transfer in a single call.\n\n`meta` and `proof` are plain bytes on purpose, so any eligibility scheme (Merkle trees, issuer signatures, something new) fits.\n\n## Sample code\n\nA wallet checking and claiming an abstract airdrop (ethers v6):\n\n```ts\nimport { Contract, Wallet, JsonRpcProvider } from \"ethers\";\n\nconst abi = [\n  \"function status((uint256 chainId,address implementation,address owner,bytes meta,uint256 nonce,bytes proof)) view returns (uint8)\",\n  \"function amount((uint256,address,address,bytes,uint256,bytes)) view returns (uint256)\",\n  \"function reify((uint256,address,address,bytes,uint256,bytes))\",\n];\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst token = new Contract(tokenAddress, abi, new Wallet(process.env.PRIVATE_KEY!, provider));\n\n// `msg` was handed to the user off-chain, e.g. by the project's API\nconst msg = [chainId, tokenAddress, owner, meta, nonce, proof];\nconst s = await token.status(msg);            // 0 invalid, 1 valid, 2 used\nif (s === 1n) {\n  console.log(\"claimable:\", await token.amount(msg));\n  await (await token.reify(msg)).wait();\n}\n```\n\n## Things to know\n\n- Status is **Draft**; names and signatures may change.\n- **Message loss = token loss.** Until reified, the token is only a message. Issuers should store messages for users, and ideally wallets would hold them.\n- If the contract reverts on an already-used message, anyone holding a copy can front-run and grief the owner's own reify call; the spec therefore allows a used message to succeed as a no-op instead of reverting.\n- Using dereify/reify as a bridge is unsafe on its own: chain B cannot know whether the message was dereified on chain A, so an oracle is needed to prevent double spending.\n- The proof scheme is out of scope; whether total supply is auditable depends entirely on the implementation's choice.\n"},"ja":{"lang":"ja","tldr":"署名付きまたは証明付きのメッセージとしてオフチェーンに存在し、必要なときだけオンチェーンで「具現化（reify）」されるトークンのドラフト標準。大規模なエアドロップや資格証明をミント費用なしで配布できる。","tags":["token","airdrop","minting","off-chain","draft"],"related":[20,721,1155,165],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-6604/","markdown":"## 何を解決するのか\n\nミントにはガス代がかかります。エアドロップ、POAP 型の受領証、アクセス資格のような大量・少額の配布では、すべてのトークンを事前にミントするのは無駄です。受取人の多くがそれを使わないならなおさらです。\n\nプロジェクトはすでに Merkle ツリーによるクレームでこれを回避していますが、クレーム用コントラクトごとに証明の形式や UI が異なり、専用の連携なしにはウォレットが「受け取れるトークンがあります」とユーザーに伝えることもできません。\n\nERC-6604 は**抽象トークン（abstract token）**を定義します。トークンは誰でも検査できるオフチェーンの*メッセージ*として存在でき、誰かがそれを提出したときにはじめて通常のオンチェーンの [ERC-20](/eip-20/)、[ERC-721](/eip-721/)、[ERC-1155](/eip-1155/) 残高になります。\n\n## 仕組み\n\n**トークンメッセージ。** トークンのオフチェーン形式です。\n\n```solidity\nstruct AbstractTokenMessage {\n  uint256 chainId;        // where it can be reified\n  address implementation; // which contract\n  address owner;          // who receives it\n  bytes   meta;           // implementation-specific: id, amount, uri…\n  uint256 nonce;          // distinguishes otherwise-identical messages\n  bytes   proof;          // Merkle proof, signature, etc.\n}\n```\n\n**トークンコントラクトの主なメソッド:**\n\n- `reify(message)`: 証明を検証し、オンチェーンでトークンをミントします。各メッセージは最大 1 回しか使えず、`Reify` を emit します。\n- `status(message)`: `invalid`、`valid`、`used` のいずれかを返すため、ウォレットは何かがミントされる前から保留中のトークンを表示できます。\n- `dereify(message)`（任意）: オンチェーンのトークンをバーンし、*別の*コントラクトまたはチェーン向けのメッセージに戻します。`Dereify` を emit します。\n- `id`、`amount`、`uri`（任意）: `meta` を解析せずに、メッセージが表す内容を読み取ります。\n\nコントラクトは [ERC-165](/eip-165/) に対応する必要があります。ERC-20/721/1155 の抽象版では、メッセージを追加引数として受け取るオーバーロードされた転送関数が加わるため、受取人は 1 回の呼び出しで reify と転送を行えます。\n\n`meta` と `proof` はあえて単なる bytes になっており、どのような受給資格の仕組み（Merkle ツリー、発行者の署名、新しい方式）でも収まります。\n\n## サンプルコード\n\nウォレットが抽象エアドロップを確認してクレームする例（ethers v6）:\n\n```ts\nimport { Contract, Wallet, JsonRpcProvider } from \"ethers\";\n\nconst abi = [\n  \"function status((uint256 chainId,address implementation,address owner,bytes meta,uint256 nonce,bytes proof)) view returns (uint8)\",\n  \"function amount((uint256,address,address,bytes,uint256,bytes)) view returns (uint256)\",\n  \"function reify((uint256,address,address,bytes,uint256,bytes))\",\n];\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst token = new Contract(tokenAddress, abi, new Wallet(process.env.PRIVATE_KEY!, provider));\n\n// `msg` was handed to the user off-chain, e.g. by the project's API\nconst msg = [chainId, tokenAddress, owner, meta, nonce, proof];\nconst s = await token.status(msg);            // 0 invalid, 1 valid, 2 used\nif (s === 1n) {\n  console.log(\"claimable:\", await token.amount(msg));\n  await (await token.reify(msg)).wait();\n}\n```\n\n## 知っておくべきこと\n\n- ステータスは **Draft** です。名前やシグネチャは変更される可能性があります。\n- **メッセージの紛失はトークンの紛失です。** reify されるまで、トークンは単なるメッセージにすぎません。発行者はユーザーのためにメッセージを保管し、できればウォレットがそれを保持するのが望ましいです。\n- コントラクトが使用済みメッセージで revert する場合、そのコピーを持つ誰もがフロントランして、所有者自身の reify 呼び出しを妨害できてしまいます。そのため仕様では、使用済みメッセージを revert させず、何もしない形で成功させることを認めています。\n- dereify/reify だけをブリッジとして使うのは安全ではありません。チェーン B は、メッセージがチェーン A で dereify されたかどうかを知ることができないため、二重使用を防ぐにはオラクルが必要です。\n- 証明方式は仕様の対象外です。総供給量を監査できるかどうかは、実装の選択に完全に依存します。\n"},"ko":{"lang":"ko","tldr":"서명되거나 증명된 메시지로 오프체인에 존재하다가 필요할 때만 온체인에서 \"구체화(reify)\"되는 토큰의 초안 표준. 대규모 에어드롭과 자격 증명을 민팅 비용 없이 배포할 수 있다.","tags":["token","airdrop","minting","off-chain","draft"],"related":[20,721,1155,165],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-6604/","markdown":"## 어떤 문제를 해결하나요?\n\n민팅에는 가스비가 듭니다. 에어드롭, POAP 방식의 영수증, 접근 자격처럼 물량은 많고 가치는 낮은 배포에서 모든 토큰을 미리 민팅하는 것은 낭비입니다. 수령자 중 상당수가 토큰을 쓰지 않는다면 더욱 그렇습니다.\n\n프로젝트들은 이미 Merkle 트리 클레임으로 이를 우회하고 있지만, 클레임 컨트랙트마다 증명 형식과 UI가 달라서 별도 연동 없이는 지갑이 사용자에게 \"받을 수 있는 토큰이 있습니다\"라고 알려줄 수도 없습니다.\n\nERC-6604는 **추상 토큰(abstract token)**을 정의합니다. 토큰은 누구나 검사할 수 있는 오프체인 *메시지*로 존재할 수 있으며, 누군가 이를 제출할 때에야 비로소 일반 온체인 [ERC-20](/eip-20/), [ERC-721](/eip-721/), [ERC-1155](/eip-1155/) 잔액이 됩니다.\n\n## 어떻게 동작하나요?\n\n**토큰 메시지.** 토큰의 오프체인 형태입니다.\n\n```solidity\nstruct AbstractTokenMessage {\n  uint256 chainId;        // where it can be reified\n  address implementation; // which contract\n  address owner;          // who receives it\n  bytes   meta;           // implementation-specific: id, amount, uri…\n  uint256 nonce;          // distinguishes otherwise-identical messages\n  bytes   proof;          // Merkle proof, signature, etc.\n}\n```\n\n**토큰 컨트랙트의 핵심 메서드:**\n\n- `reify(message)`: 증명을 검증하고 온체인에서 토큰을 민팅합니다. 각 메시지는 최대 한 번만 사용할 수 있으며 `Reify`를 emit합니다.\n- `status(message)`: `invalid`, `valid`, `used` 중 하나를 반환하므로, 지갑은 아무것도 민팅되기 전에 대기 중인 토큰을 보여줄 수 있습니다.\n- `dereify(message)`(선택): 온체인 토큰을 소각하고 *다른* 컨트랙트나 체인용 메시지로 되돌립니다. `Dereify`를 emit합니다.\n- `id`, `amount`, `uri`(선택): `meta`를 파싱하지 않고도 메시지가 나타내는 내용을 읽습니다.\n\n컨트랙트는 [ERC-165](/eip-165/)를 지원해야 합니다. ERC-20/721/1155의 추상 버전은 메시지를 추가 인자로 받는 오버로드된 전송 함수를 더하므로, 수령자는 한 번의 호출로 reify와 전송을 할 수 있습니다.\n\n`meta`와 `proof`는 의도적으로 단순한 bytes이므로, 어떤 자격 확인 방식(Merkle 트리, 발행자 서명, 새로운 방식)이든 들어맞습니다.\n\n## 샘플 코드\n\n지갑이 추상 에어드롭을 확인하고 클레임하는 예(ethers v6):\n\n```ts\nimport { Contract, Wallet, JsonRpcProvider } from \"ethers\";\n\nconst abi = [\n  \"function status((uint256 chainId,address implementation,address owner,bytes meta,uint256 nonce,bytes proof)) view returns (uint8)\",\n  \"function amount((uint256,address,address,bytes,uint256,bytes)) view returns (uint256)\",\n  \"function reify((uint256,address,address,bytes,uint256,bytes))\",\n];\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst token = new Contract(tokenAddress, abi, new Wallet(process.env.PRIVATE_KEY!, provider));\n\n// `msg` was handed to the user off-chain, e.g. by the project's API\nconst msg = [chainId, tokenAddress, owner, meta, nonce, proof];\nconst s = await token.status(msg);            // 0 invalid, 1 valid, 2 used\nif (s === 1n) {\n  console.log(\"claimable:\", await token.amount(msg));\n  await (await token.reify(msg)).wait();\n}\n```\n\n## 알아둘 점\n\n- 상태는 **Draft**입니다. 이름과 시그니처는 바뀔 수 있습니다.\n- **메시지를 잃으면 토큰을 잃습니다.** reify되기 전까지 토큰은 메시지일 뿐입니다. 발행자는 사용자를 위해 메시지를 보관해야 하며, 이상적으로는 지갑이 메시지를 보관하는 것이 좋습니다.\n- 컨트랙트가 이미 사용된 메시지에서 revert하면, 사본을 가진 누구든 프론트러닝으로 소유자 본인의 reify 호출을 방해할 수 있습니다. 그래서 명세는 사용된 메시지를 revert하는 대신 아무 일도 하지 않고 성공하도록 허용합니다.\n- dereify/reify만으로 브리지를 구성하는 것은 안전하지 않습니다. 체인 B는 메시지가 체인 A에서 dereify되었는지 알 수 없으므로, 이중 사용을 막으려면 오라클이 필요합니다.\n- 증명 방식은 명세의 범위 밖입니다. 총 공급량을 감사할 수 있는지는 전적으로 구현의 선택에 달려 있습니다.\n"},"zh":{"lang":"zh","tldr":"一个草案标准：代币以签名或带证明的消息形式存在于链下，仅在需要时才在链上\"具现化（reify）\"，使大规模空投和凭证可以免费铸造。","tags":["token","airdrop","minting","off-chain","draft"],"related":[20,721,1155,165],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-6604/","markdown":"## 它解决什么问题？\n\n铸造需要 gas。对于空投、POAP 式收据或访问凭证这类大批量、低价值的发放，预先铸造每一枚代币是浪费的，尤其是许多接收者根本不会使用它们。\n\n各项目已经用 Merkle 树领取来绕开这个问题，但每个领取合约都有自己的证明格式和界面，没有定制集成的话，钱包也无法告诉用户\"你有这些代币待领取\"。\n\nERC-6604 定义了**抽象代币（abstract token）**：代币可以作为任何人都能检查的链下*消息*存在，只有当有人提交它时，才会变成普通的链上 [ERC-20](/eip-20/)、[ERC-721](/eip-721/) 或 [ERC-1155](/eip-1155/) 余额。\n\n## 它如何运作\n\n**代币消息。** 代币的链下形式：\n\n```solidity\nstruct AbstractTokenMessage {\n  uint256 chainId;        // where it can be reified\n  address implementation; // which contract\n  address owner;          // who receives it\n  bytes   meta;           // implementation-specific: id, amount, uri…\n  uint256 nonce;          // distinguishes otherwise-identical messages\n  bytes   proof;          // Merkle proof, signature, etc.\n}\n```\n\n**代币合约的核心方法：**\n\n- `reify(message)`：验证证明并在链上铸造代币。每条消息最多只能使用一次；触发 `Reify` 事件。\n- `status(message)`：返回 `invalid`、`valid` 或 `used`，因此钱包可以在任何铸造发生之前显示待领取的代币。\n- `dereify(message)`（可选）：销毁链上代币，并将其转回供*另一个*合约或链使用的消息；触发 `Dereify` 事件。\n- `id`、`amount`、`uri`（可选）：无需解析 `meta` 即可读取消息所代表的内容。\n\n合约必须支持 [ERC-165](/eip-165/)。ERC-20/721/1155 的抽象版本增加了以消息作为额外参数的重载转账函数，因此接收者可以在一次调用中完成 reify 和转账。\n\n`meta` 和 `proof` 有意设计为普通 bytes，因此任何资格验证方案（Merkle 树、发行方签名或新方案）都可以适用。\n\n## 示例代码\n\n钱包检查并领取抽象空投（ethers v6）：\n\n```ts\nimport { Contract, Wallet, JsonRpcProvider } from \"ethers\";\n\nconst abi = [\n  \"function status((uint256 chainId,address implementation,address owner,bytes meta,uint256 nonce,bytes proof)) view returns (uint8)\",\n  \"function amount((uint256,address,address,bytes,uint256,bytes)) view returns (uint256)\",\n  \"function reify((uint256,address,address,bytes,uint256,bytes))\",\n];\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst token = new Contract(tokenAddress, abi, new Wallet(process.env.PRIVATE_KEY!, provider));\n\n// `msg` was handed to the user off-chain, e.g. by the project's API\nconst msg = [chainId, tokenAddress, owner, meta, nonce, proof];\nconst s = await token.status(msg);            // 0 invalid, 1 valid, 2 used\nif (s === 1n) {\n  console.log(\"claimable:\", await token.amount(msg));\n  await (await token.reify(msg)).wait();\n}\n```\n\n## 需要注意\n\n- 状态为 **Draft**；名称和签名可能会改变。\n- **丢失消息等于丢失代币。** 在 reify 之前，代币只是一条消息。发行方应为用户保存消息，最好由钱包来持有。\n- 如果合约在遇到已使用的消息时 revert，任何持有副本的人都可以抢先交易，破坏所有者自己的 reify 调用；因此规范允许已使用的消息以空操作方式成功，而不是 revert。\n- 单独把 dereify/reify 用作跨链桥是不安全的：链 B 无法得知该消息是否已在链 A 上被 dereify，因此需要预言机来防止双花。\n- 证明方案不在规范范围内；总供应量是否可审计，完全取决于具体实现的选择。\n"}}}
