{"eip":7144,"title":"ERC-20 with transaction validation step.","description":"A new validation step for transfer and approve calls, achieving a security step in case of stolen wallet.","authors":["Eduard López i Fina (@eduardfina)"],"status":"Review","type":"Standards Track","category":"ERC","created":"2023-05-07","requires":[20],"discussionsTo":"https://ethereum-magicians.org/t/erc721-with-a-validation-step/14071","repo":"ERCs","label":"ERC-7144","officialUrl":"https://eips.ethereum.org/EIPS/eip-7144","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-7144.md","url":"https://eips.huatuo.xyz/eip-7144/","tldr":{"en":"An ERC-20 extension where transfer and approve do not execute immediately but create pending requests that a separate validator must confirm, so a stolen key alone cannot drain the wallet.","ja":"ERC-20 の拡張。transfer と approve はすぐには実行されず、別のバリデーターの確認を待つ保留リクエストとして作成されるため、鍵が盗まれただけではウォレットを空にできない。","ko":"ERC-20 확장. transfer와 approve가 즉시 실행되지 않고 별도의 검증자가 확인해야 하는 대기 요청으로 생성되므로, 탈취된 키만으로는 지갑을 비울 수 없다.","zh":"ERC-20 扩展：transfer 和 approve 不会立即执行，而是创建待处理请求，需由独立的验证者确认，因此仅靠被盗的密钥无法掏空钱包。"},"tags":["token","erc20","security","anti-theft","validation"],"explainers":{"en":{"lang":"en","tldr":"An ERC-20 extension where transfer and approve do not execute immediately but create pending requests that a separate validator must confirm, so a stolen key alone cannot drain the wallet.","tags":["token","erc20","security","anti-theft","validation"],"related":[20,6997,6808],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-7144/","markdown":"## What problem does it solve?\n\nWith [ERC-20](/eip-20/), a single private key is enough to move all of a holder's tokens. Phishing and leaked keys therefore lead to instant, irreversible draining. Moving tokens to a cold wallet helps, but makes them inconvenient to use.\n\nERC-7144 adds a **validation step**: transfers and approvals initiated by the owner are only recorded as requests, and something else (for example a validator address connected to a dApp) must confirm them. A thief would need both the owner key and the validator's approval. It is the fungible counterpart of [ERC-6997](/eip-6997/), which applies the same idea to ERC-721.\n\n## How it works\n\n- `transfer` / `transferFrom` called by the owner **do not move tokens**. They create a `TransferValidation { from, to, amount, valid }` and emit `ValidateTransfer(from, to, amount, transferValidationId)`.\n- `approve` **does not set an allowance**. It creates an `ApprovalValidation { owner, spender, amount, valid }` and emits `ValidateApproval(owner, spender, amount, approvalValidationId)`.\n- Validating a request sets `valid = true` (it can never be validated twice) and then performs the transfer or enables the approval.\n- A `transferFrom` by an already **approved spender** executes directly without validation, so DEXs and other protocols that pull tokens keep working once the approval itself was validated.\n\nRead-only helpers:\n\n| Function | Returns |\n| --- | --- |\n| `isValidatorContract()` | `true` for a validator-enabled ERC-20 |\n| `transferValidation(id)` | a pending or completed transfer request |\n| `approvalValidation(id)` | a pending or completed approval request |\n| `totalTransferValidations()` / `totalApprovalValidations()` | number of requests created |\n\nThe standard deliberately does **not** define who validates or how; the validation function is internal. A project might use one validator address for everyone, or let each user pick their own.\n\n## Sample code\n\nWatching for pending requests and checking their state (ethers v6):\n\n```ts\nimport { Contract, JsonRpcProvider, formatUnits } from \"ethers\";\n\nconst abi = [\n  \"function isValidatorContract() view returns (bool)\",\n  \"function transferValidation(uint256) view returns (tuple(address from,address to,uint256 amount,bool valid))\",\n  \"event ValidateTransfer(address indexed from, address indexed to, uint256 amount, uint256 indexed transferValidationId)\",\n];\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst token = new Contract(process.env.TOKEN!, abi, provider);\n\nif (!(await token.isValidatorContract())) throw new Error(\"not an ERC-7144 token\");\n\ntoken.on(\"ValidateTransfer\", async (from, to, amount, id) =\u003e {\n  const v = await token.transferValidation(id);\n  console.log(`request #${id}: ${from} -\u003e ${to} ${formatUnits(amount, 18)} valid=${v.valid}`);\n  // a validator dApp would show this to the user and, if approved,\n  // call the project's own (non-standard) validate function\n});\n```\n\n## Things to know\n\n- Status is **Review**; the interface may still change.\n- Every owner-initiated transfer becomes two steps, which adds latency and gas. Tools that expect `transfer` to move tokens immediately (and the `Transfer` event to follow) will be confused.\n- Security rests entirely on how validation is protected. If the validator key is weak or shared, the scheme adds little.\n- Approved spenders bypass validation, so a validated approval is still a powerful grant.\n- An alternative design with key wallets that pre-authorize transfers is [ERC-6808](/eip-6808/).\n"},"ja":{"lang":"ja","tldr":"ERC-20 の拡張。transfer と approve はすぐには実行されず、別のバリデーターの確認を待つ保留リクエストとして作成されるため、鍵が盗まれただけではウォレットを空にできない。","tags":["token","erc20","security","anti-theft","validation"],"related":[20,6997,6808],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-7144/","markdown":"## 何を解決するのか\n\n[ERC-20](/eip-20/) では、秘密鍵 1 本で保有者のトークンをすべて動かせます。そのため、フィッシングや鍵の流出は、即座に取り返しのつかない資産の流出につながります。トークンをコールドウォレットに移せば安全になりますが、使い勝手が悪くなります。\n\nERC-7144 は **検証ステップ** を追加します。所有者が開始した送金や承認は、リクエストとして記録されるだけで、別の何か（たとえば dApp に接続されたバリデーターアドレス）がそれを確認する必要があります。泥棒は所有者の鍵とバリデーターの承認の両方が必要になります。これは、同じ考え方を ERC-721 に適用した [ERC-6997](/eip-6997/) の代替可能トークン版です。\n\n## 仕組み\n\n- 所有者が呼び出した `transfer` / `transferFrom` は **トークンを動かしません**。`TransferValidation { from, to, amount, valid }` を作成し、`ValidateTransfer(from, to, amount, transferValidationId)` を emit します。\n- `approve` は **allowance を設定しません**。`ApprovalValidation { owner, spender, amount, valid }` を作成し、`ValidateApproval(owner, spender, amount, approvalValidationId)` を emit します。\n- リクエストを検証すると `valid = true` になり（2 回検証されることはありません）、そのあとで送金または承認が有効になります。\n- すでに **承認済みの spender** による `transferFrom` は検証なしで直接実行されます。そのため、承認自体が検証されたあとであれば、トークンを引き出す DEX などのプロトコルも引き続き動作します。\n\n読み取り専用のヘルパー:\n\n| 関数 | 戻り値 |\n| --- | --- |\n| `isValidatorContract()` | バリデーター対応の ERC-20 なら `true` |\n| `transferValidation(id)` | 保留中または完了済みの送金リクエスト |\n| `approvalValidation(id)` | 保留中または完了済みの承認リクエスト |\n| `totalTransferValidations()` / `totalApprovalValidations()` | 作成されたリクエストの数 |\n\nこの規格は、誰がどのように検証するかを意図的に定義 **していません**。検証関数は internal です。プロジェクトによっては全員に 1 つのバリデーターアドレスを使うことも、ユーザーごとに選ばせることもできます。\n\n## サンプルコード\n\n保留中のリクエストを監視し、その状態を確認する（ethers v6）:\n\n```ts\nimport { Contract, JsonRpcProvider, formatUnits } from \"ethers\";\n\nconst abi = [\n  \"function isValidatorContract() view returns (bool)\",\n  \"function transferValidation(uint256) view returns (tuple(address from,address to,uint256 amount,bool valid))\",\n  \"event ValidateTransfer(address indexed from, address indexed to, uint256 amount, uint256 indexed transferValidationId)\",\n];\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst token = new Contract(process.env.TOKEN!, abi, provider);\n\nif (!(await token.isValidatorContract())) throw new Error(\"not an ERC-7144 token\");\n\ntoken.on(\"ValidateTransfer\", async (from, to, amount, id) =\u003e {\n  const v = await token.transferValidation(id);\n  console.log(`request #${id}: ${from} -\u003e ${to} ${formatUnits(amount, 18)} valid=${v.valid}`);\n  // a validator dApp would show this to the user and, if approved,\n  // call the project's own (non-standard) validate function\n});\n```\n\n## 知っておくべきこと\n\n- ステータスは **Review** で、インターフェースはまだ変わる可能性があります。\n- 所有者が開始するすべての送金が 2 ステップになるため、遅延と gas が増えます。`transfer` がすぐにトークンを動かす（そのあとに `Transfer` イベントが出る）ことを前提とするツールは混乱します。\n- セキュリティは、検証がどう保護されているかにすべてかかっています。バリデーターの鍵が弱かったり共有されていたりすれば、この仕組みはほとんど意味を持ちません。\n- 承認済みの spender は検証をバイパスするため、検証済みの承認であっても強力な権限付与であることに変わりはありません。\n- 鍵ウォレットが送金を事前に許可する別の設計として [ERC-6808](/eip-6808/) があります。\n"},"ko":{"lang":"ko","tldr":"ERC-20 확장. transfer와 approve가 즉시 실행되지 않고 별도의 검증자가 확인해야 하는 대기 요청으로 생성되므로, 탈취된 키만으로는 지갑을 비울 수 없다.","tags":["token","erc20","security","anti-theft","validation"],"related":[20,6997,6808],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-7144/","markdown":"## 어떤 문제를 해결하나요?\n\n[ERC-20](/eip-20/)에서는 개인 키 하나만 있으면 보유자의 토큰을 전부 옮길 수 있습니다. 그래서 피싱과 키 유출은 즉각적이고 되돌릴 수 없는 탈취로 이어집니다. 토큰을 콜드 월렛으로 옮기면 도움이 되지만 쓰기가 불편해집니다.\n\nERC-7144는 **검증 단계**를 추가합니다. 소유자가 시작한 전송과 승인은 요청으로만 기록되고, 다른 주체(예: dApp에 연결된 검증자 주소)가 이를 확인해야 합니다. 도둑은 소유자 키와 검증자의 승인을 모두 얻어야 합니다. 같은 아이디어를 ERC-721에 적용한 [ERC-6997](/eip-6997/)의 대체 가능 토큰 버전입니다.\n\n## 어떻게 동작하나요?\n\n- 소유자가 호출한 `transfer` / `transferFrom`은 **토큰을 옮기지 않습니다**. `TransferValidation { from, to, amount, valid }`를 만들고 `ValidateTransfer(from, to, amount, transferValidationId)`를 emit합니다.\n- `approve`는 **allowance를 설정하지 않습니다**. `ApprovalValidation { owner, spender, amount, valid }`를 만들고 `ValidateApproval(owner, spender, amount, approvalValidationId)`를 emit합니다.\n- 요청을 검증하면 `valid = true`가 되고(두 번 검증될 수는 없음), 그런 다음 전송을 수행하거나 승인을 활성화합니다.\n- 이미 **승인된 spender**의 `transferFrom`은 검증 없이 바로 실행되므로, 승인 자체가 검증된 뒤에는 토큰을 가져가는 DEX 등 프로토콜도 계속 동작합니다.\n\n읽기 전용 헬퍼:\n\n| 함수 | 반환값 |\n| --- | --- |\n| `isValidatorContract()` | 검증자를 지원하는 ERC-20이면 `true` |\n| `transferValidation(id)` | 대기 중이거나 완료된 전송 요청 |\n| `approvalValidation(id)` | 대기 중이거나 완료된 승인 요청 |\n| `totalTransferValidations()` / `totalApprovalValidations()` | 생성된 요청 수 |\n\n이 표준은 누가 어떻게 검증하는지를 의도적으로 정의하지 **않습니다**. 검증 함수는 internal입니다. 프로젝트는 모두에게 검증자 주소 하나를 쓸 수도 있고, 사용자마다 직접 고르게 할 수도 있습니다.\n\n## 샘플 코드\n\n대기 중인 요청을 감시하고 상태를 확인(ethers v6):\n\n```ts\nimport { Contract, JsonRpcProvider, formatUnits } from \"ethers\";\n\nconst abi = [\n  \"function isValidatorContract() view returns (bool)\",\n  \"function transferValidation(uint256) view returns (tuple(address from,address to,uint256 amount,bool valid))\",\n  \"event ValidateTransfer(address indexed from, address indexed to, uint256 amount, uint256 indexed transferValidationId)\",\n];\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst token = new Contract(process.env.TOKEN!, abi, provider);\n\nif (!(await token.isValidatorContract())) throw new Error(\"not an ERC-7144 token\");\n\ntoken.on(\"ValidateTransfer\", async (from, to, amount, id) =\u003e {\n  const v = await token.transferValidation(id);\n  console.log(`request #${id}: ${from} -\u003e ${to} ${formatUnits(amount, 18)} valid=${v.valid}`);\n  // a validator dApp would show this to the user and, if approved,\n  // call the project's own (non-standard) validate function\n});\n```\n\n## 알아둘 점\n\n- 상태는 **Review**이며, 인터페이스가 아직 바뀔 수 있습니다.\n- 소유자가 시작하는 모든 전송이 두 단계가 되어 지연과 gas가 늘어납니다. `transfer`가 즉시 토큰을 옮기고 `Transfer` 이벤트가 뒤따르리라 기대하는 도구는 혼란을 겪습니다.\n- 보안은 전적으로 검증이 어떻게 보호되느냐에 달려 있습니다. 검증자 키가 약하거나 공유되면 이 방식은 거의 효과가 없습니다.\n- 승인된 spender는 검증을 우회하므로, 검증을 거친 승인도 여전히 강력한 권한 부여입니다.\n- 키 지갑이 전송을 사전 허가하는 다른 설계로는 [ERC-6808](/eip-6808/)이 있습니다.\n"},"zh":{"lang":"zh","tldr":"ERC-20 扩展：transfer 和 approve 不会立即执行，而是创建待处理请求，需由独立的验证者确认，因此仅靠被盗的密钥无法掏空钱包。","tags":["token","erc20","security","anti-theft","validation"],"related":[20,6997,6808],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-7144/","markdown":"## 它解决什么问题？\n\n在 [ERC-20](/eip-20/) 中，一个私钥就足以转走持有者的所有代币。因此钓鱼和密钥泄露会导致资产瞬间且不可逆地被转走。把代币转到冷钱包虽然有帮助，却让使用变得不方便。\n\nERC-7144 增加了一个 **验证步骤**：由所有者发起的转账和授权只会被记录为请求，必须由其他方（例如连接到 dApp 的验证者地址）确认。窃贼需要同时拥有所有者的私钥和验证者的批准。它是 [ERC-6997](/eip-6997/) 的同质化版本，后者把同样的思路用在 ERC-721 上。\n\n## 它如何运作\n\n- 所有者调用 `transfer` / `transferFrom` **不会转移代币**。它们会创建一个 `TransferValidation { from, to, amount, valid }` 并触发 `ValidateTransfer(from, to, amount, transferValidationId)`。\n- `approve` **不会设置额度**。它会创建一个 `ApprovalValidation { owner, spender, amount, valid }` 并触发 `ValidateApproval(owner, spender, amount, approvalValidationId)`。\n- 验证请求会把 `valid` 设为 `true`（同一请求不可能被验证两次），然后执行转账或启用授权。\n- 已 **获授权的 spender** 调用 `transferFrom` 会直接执行而无需验证，因此只要授权本身已通过验证，DEX 等拉取代币的协议仍可正常工作。\n\n只读辅助函数：\n\n| 函数 | 返回值 |\n| --- | --- |\n| `isValidatorContract()` | 支持验证者的 ERC-20 返回 `true` |\n| `transferValidation(id)` | 一个待处理或已完成的转账请求 |\n| `approvalValidation(id)` | 一个待处理或已完成的授权请求 |\n| `totalTransferValidations()` / `totalApprovalValidations()` | 已创建的请求数量 |\n\n该标准有意 **不** 规定由谁验证以及如何验证；验证函数是 internal 的。项目可以为所有人使用同一个验证者地址，也可以让每个用户自己选择。\n\n## 示例代码\n\n监听待处理请求并检查其状态（ethers v6）：\n\n```ts\nimport { Contract, JsonRpcProvider, formatUnits } from \"ethers\";\n\nconst abi = [\n  \"function isValidatorContract() view returns (bool)\",\n  \"function transferValidation(uint256) view returns (tuple(address from,address to,uint256 amount,bool valid))\",\n  \"event ValidateTransfer(address indexed from, address indexed to, uint256 amount, uint256 indexed transferValidationId)\",\n];\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst token = new Contract(process.env.TOKEN!, abi, provider);\n\nif (!(await token.isValidatorContract())) throw new Error(\"not an ERC-7144 token\");\n\ntoken.on(\"ValidateTransfer\", async (from, to, amount, id) =\u003e {\n  const v = await token.transferValidation(id);\n  console.log(`request #${id}: ${from} -\u003e ${to} ${formatUnits(amount, 18)} valid=${v.valid}`);\n  // a validator dApp would show this to the user and, if approved,\n  // call the project's own (non-standard) validate function\n});\n```\n\n## 需要注意\n\n- 状态为 **Review**；接口仍可能变化。\n- 所有者发起的每笔转账都变成两步，增加了延迟和 gas。那些预期 `transfer` 立即转移代币（随后触发 `Transfer` 事件）的工具会感到困惑。\n- 安全性完全取决于验证如何受到保护。如果验证者的密钥薄弱或被共用，这套方案几乎起不到作用。\n- 已获授权的 spender 会绕过验证，因此一个通过验证的授权仍然是一项强大的授权。\n- 另一种由密钥钱包预先授权转账的设计是 [ERC-6808](/eip-6808/)。\n"}}}
