{"eip":2019,"title":"Fundable Token","description":"An extension to the [ERC-20] standard token that allows Token wallet owners to request a wallet to be funded, by calling the smart contract and attaching a fund instruction string.","authors":["Fernando Paris \u003cfer@io.builders\u003e","Julio Faura \u003cjulio@adhara.io\u003e","Daniel Lehrner \u003cdaniel@io.builders\u003e"],"status":"Stagnant","type":"Standards Track","category":"ERC","created":"2019-05-10","requires":[20],"discussionsTo":"https://github.com/ethereum/EIPs/issues/2105","repo":"ERCs","label":"ERC-2019","officialUrl":"https://eips.ethereum.org/EIPS/eip-2019","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-2019.md","url":"https://eips.huatuo.xyz/eip-2019/","tldr":{"en":"An ERC-20 extension that lets a wallet owner request new tokens on-chain (for example in exchange for a fiat payment), with an operator who processes, executes or rejects each funding order.","ja":"ウォレット所有者がオンチェーンで新規トークンを要求（たとえば法定通貨の支払いと引き換えに）できる ERC-20 拡張。オペレーターが各入金注文を処理・実行・拒否する。","ko":"지갑 소유자가 온체인에서 새 토큰을 요청(예: 법정화폐 결제의 대가로)할 수 있게 하는 ERC-20 확장. 운영자가 각 입금 주문을 처리, 실행 또는 거부한다.","zh":"一个 ERC-20 扩展，让钱包所有者可以在链上请求新代币（例如换取法币付款），由运营方处理、执行或拒绝每一笔充值订单。"},"tags":["token","erc20","e-money","minting","payments"],"explainers":{"en":{"lang":"en","tldr":"An ERC-20 extension that lets a wallet owner request new tokens on-chain (for example in exchange for a fiat payment), with an operator who processes, executes or rejects each funding order.","tags":["token","erc20","e-money","minting","payments"],"related":[20,1066,1996,2018,2020],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-2019/","markdown":"## What problem does it solve?\n\nFor a regulated, fiat-backed token (bank money, e-money), getting tokens into your wallet usually starts off-chain: you send a bank transfer, then the issuer mints. The request itself is invisible on the chain.\n\nERC-2019 moves the *request* on-chain. A wallet owner submits a funding order with payment instructions; the token operator works through it and records each status change. This gives a traceable, auditable lifecycle for funding, while the actual payment details stay in private channels.\n\nIt is part of a family of proposals by the same authors for e-money tokens, alongside [Holdable](/eip-1996/), [Clearable](/eip-2018/) and the umbrella [E-Money](/eip-2020/) token.\n\n## How it works\n\nThree actors: the **wallet owner**, an optional **orderer** authorised to act for them, and the token **operator** who mints.\n\nStatus flow for each order, identified by a string `operationId`:\n\n```\nOrdered ──processFund──▶ InProcess ──executeFund──▶ Executed (tokens minted)\n   │                         └──────rejectFund────▶ Rejected\n   └──cancelFund──▶ Cancelled   (only before InProcess)\n```\n\nMain functions:\n\n| Function | Who | Purpose |\n| --- | --- | --- |\n| `authorizeFundOperator(orderer)` / `revokeFundOperator` | owner | Allow or stop another address ordering for you |\n| `orderFund(id, value, instructions)` | owner | Request funding of your own wallet |\n| `orderFundFrom(id, wallet, value, instructions)` | orderer | Request on behalf of an owner |\n| `cancelFund(id)` | owner/orderer | Cancel before processing starts |\n| `processFund(id)` / `executeFund(id)` / `rejectFund(id, reason)` | operator | Move the order forward; execute mints the tokens |\n| `retrieveFundData(orderer, id)` | view | Wallet, value, instructions, status |\n\nEach step emits an event (`FundOrdered`, `FundInProcess`, `FundExecuted`, `FundRejected`, `FundCancelled`, ...). Rejection reasons may use [ERC-1066](/eip-1066/) status codes. An `operationId` must not be reused.\n\n## Sample code\n\nOrdering and watching a funding request with ethers v6:\n\n```ts\nimport { Contract, parseUnits } from \"ethers\";\n\nconst abi = [\n  \"function orderFund(string operationId, uint256 value, string instructions) returns (bool)\",\n  \"event FundExecuted(address indexed orderer, string indexed operationId)\",\n];\nconst token = new Contract(tokenAddress, abi, signer);\n\nconst opId = `acme-${crypto.randomUUID()}`;          // prefix to avoid collisions\nawait token.orderFund(opId, parseUnits(\"250\", decimals), \"ref:INV-2041\"); // keep sensitive data off-chain\n\ntoken.on(\"FundExecuted\", (orderer, _opIdHash, ev) =\u003e {\n  if (orderer === signer.address) console.log(\"funded in\", ev.log.transactionHash);\n});\n```\n\n## Things to know\n\n- Status is **Stagnant**. The interface was not finalised.\n- The spec warns against putting bank or routing details on-chain in plain text. Use an off-chain channel, or at least encrypt the `instructions` string.\n- `operationId` is a shared namespace, so use a unique prefix. Because the event indexes it as a `string`, logs contain only its hash.\n- The operator is fully trusted to honour or reject requests; the standard records the process, it does not enforce payment.\n"},"ja":{"lang":"ja","tldr":"ウォレット所有者がオンチェーンで新規トークンを要求（たとえば法定通貨の支払いと引き換えに）できる ERC-20 拡張。オペレーターが各入金注文を処理・実行・拒否する。","tags":["token","erc20","e-money","minting","payments"],"related":[20,1066,1996,2018,2020],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-2019/","markdown":"## 何を解決するのか\n\n規制対象の法定通貨裏付けトークン（銀行マネー、電子マネー）では、ウォレットにトークンを入れる手続きは通常オフチェーンで始まります。銀行振込を送り、その後に発行者がミントします。要求そのものはチェーン上から見えません。\n\nERC-2019 は*要求*をオンチェーンに移します。ウォレット所有者が支払い指示を添えて入金注文を提出し、トークンのオペレーターが処理を進めて各ステータスの変化を記録します。これにより入金のライフサイクルを追跡・監査でき、実際の支払い詳細は非公開のチャネルに残ります。\n\nこれは同じ著者による電子マネートークン向け提案群の一部で、[Holdable](/eip-1996/)、[Clearable](/eip-2018/)、そして包括的な [E-Money](/eip-2020/) トークンと並びます。\n\n## 仕組み\n\n関係者は 3 者です。**ウォレット所有者**、所有者に代わって動く権限を与えられた任意の **orderer**、そしてミントを行うトークンの**オペレーター**です。\n\n各注文は文字列の `operationId` で識別され、ステータスは次のように遷移します。\n\n```\nOrdered ──processFund──▶ InProcess ──executeFund──▶ Executed (tokens minted)\n   │                         └──────rejectFund────▶ Rejected\n   └──cancelFund──▶ Cancelled   (only before InProcess)\n```\n\n主な関数:\n\n| 関数 | 実行者 | 役割 |\n| --- | --- | --- |\n| `authorizeFundOperator(orderer)` / `revokeFundOperator` | 所有者 | 別のアドレスに自分の代わりの注文を許可、または停止する |\n| `orderFund(id, value, instructions)` | 所有者 | 自分のウォレットへの入金を要求する |\n| `orderFundFrom(id, wallet, value, instructions)` | orderer | 所有者に代わって要求する |\n| `cancelFund(id)` | 所有者/orderer | 処理開始前にキャンセルする |\n| `processFund(id)` / `executeFund(id)` / `rejectFund(id, reason)` | オペレーター | 注文を前に進める。execute でトークンがミントされる |\n| `retrieveFundData(orderer, id)` | view | ウォレット、金額、指示、ステータス |\n\n各ステップでイベント（`FundOrdered`、`FundInProcess`、`FundExecuted`、`FundRejected`、`FundCancelled` など）が発行されます。拒否理由には [ERC-1066](/eip-1066/) のステータスコードを使えます。`operationId` は再利用できません。\n\n## サンプルコード\n\nethers v6 で入金要求を注文して監視する例:\n\n```ts\nimport { Contract, parseUnits } from \"ethers\";\n\nconst abi = [\n  \"function orderFund(string operationId, uint256 value, string instructions) returns (bool)\",\n  \"event FundExecuted(address indexed orderer, string indexed operationId)\",\n];\nconst token = new Contract(tokenAddress, abi, signer);\n\nconst opId = `acme-${crypto.randomUUID()}`;          // prefix to avoid collisions\nawait token.orderFund(opId, parseUnits(\"250\", decimals), \"ref:INV-2041\"); // keep sensitive data off-chain\n\ntoken.on(\"FundExecuted\", (orderer, _opIdHash, ev) =\u003e {\n  if (orderer === signer.address) console.log(\"funded in\", ev.log.transactionHash);\n});\n```\n\n## 知っておくべきこと\n\n- ステータスは **Stagnant** です。インターフェースは確定しませんでした。\n- 仕様は、銀行情報やルーティング情報を平文でオンチェーンに載せないよう警告しています。オフチェーンのチャネルを使うか、少なくとも `instructions` 文字列を暗号化してください。\n- `operationId` は共有の名前空間なので、一意なプレフィックスを使ってください。イベントでは `string` としてインデックスされるため、ログにはそのハッシュしか含まれません。\n- オペレーターは要求を受け入れるか拒否するかについて完全に信頼されます。この標準はプロセスを記録するだけで、支払いを強制するものではありません。\n"},"ko":{"lang":"ko","tldr":"지갑 소유자가 온체인에서 새 토큰을 요청(예: 법정화폐 결제의 대가로)할 수 있게 하는 ERC-20 확장. 운영자가 각 입금 주문을 처리, 실행 또는 거부한다.","tags":["token","erc20","e-money","minting","payments"],"related":[20,1066,1996,2018,2020],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-2019/","markdown":"## 어떤 문제를 해결하나요?\n\n규제를 받는 법정화폐 기반 토큰(은행 화폐, 전자화폐)은 지갑에 토큰을 받는 과정이 보통 오프체인에서 시작됩니다. 은행 이체를 보내면 발행자가 민팅합니다. 요청 자체는 체인에서 보이지 않습니다.\n\nERC-2019는 *요청*을 온체인으로 옮깁니다. 지갑 소유자가 결제 지침과 함께 입금 주문을 제출하면, 토큰 운영자가 이를 처리하며 상태가 바뀔 때마다 기록합니다. 이렇게 입금에 대해 추적과 감사가 가능한 수명 주기를 확보하면서, 실제 결제 세부 정보는 비공개 채널에 남습니다.\n\n같은 작성자들이 전자화폐 토큰을 위해 내놓은 제안군의 일부로, [Holdable](/eip-1996/), [Clearable](/eip-2018/) 및 이를 아우르는 [E-Money](/eip-2020/) 토큰과 함께합니다.\n\n## 어떻게 동작하나요?\n\n행위자는 세 가지입니다. **지갑 소유자**, 소유자를 대신해 행동할 권한을 받은 선택적 **orderer**, 그리고 민팅을 하는 토큰 **운영자**입니다.\n\n각 주문은 문자열 `operationId`로 식별되며 상태는 다음과 같이 흐릅니다.\n\n```\nOrdered ──processFund──▶ InProcess ──executeFund──▶ Executed (tokens minted)\n   │                         └──────rejectFund────▶ Rejected\n   └──cancelFund──▶ Cancelled   (only before InProcess)\n```\n\n주요 함수:\n\n| 함수 | 호출자 | 역할 |\n| --- | --- | --- |\n| `authorizeFundOperator(orderer)` / `revokeFundOperator` | 소유자 | 다른 주소가 나 대신 주문하도록 허용하거나 중단 |\n| `orderFund(id, value, instructions)` | 소유자 | 자신의 지갑에 입금 요청 |\n| `orderFundFrom(id, wallet, value, instructions)` | orderer | 소유자를 대신해 요청 |\n| `cancelFund(id)` | 소유자/orderer | 처리가 시작되기 전에 취소 |\n| `processFund(id)` / `executeFund(id)` / `rejectFund(id, reason)` | 운영자 | 주문을 진행. execute가 토큰을 민팅 |\n| `retrieveFundData(orderer, id)` | view | 지갑, 금액, 지침, 상태 |\n\n각 단계는 이벤트(`FundOrdered`, `FundInProcess`, `FundExecuted`, `FundRejected`, `FundCancelled` 등)를 발생시킵니다. 거부 사유에는 [ERC-1066](/eip-1066/) 상태 코드를 사용할 수 있습니다. `operationId`는 재사용할 수 없습니다.\n\n## 샘플 코드\n\nethers v6로 입금 요청을 주문하고 지켜보는 예시:\n\n```ts\nimport { Contract, parseUnits } from \"ethers\";\n\nconst abi = [\n  \"function orderFund(string operationId, uint256 value, string instructions) returns (bool)\",\n  \"event FundExecuted(address indexed orderer, string indexed operationId)\",\n];\nconst token = new Contract(tokenAddress, abi, signer);\n\nconst opId = `acme-${crypto.randomUUID()}`;          // prefix to avoid collisions\nawait token.orderFund(opId, parseUnits(\"250\", decimals), \"ref:INV-2041\"); // keep sensitive data off-chain\n\ntoken.on(\"FundExecuted\", (orderer, _opIdHash, ev) =\u003e {\n  if (orderer === signer.address) console.log(\"funded in\", ev.log.transactionHash);\n});\n```\n\n## 알아둘 점\n\n- 상태는 **Stagnant**입니다. 인터페이스가 확정되지 않았습니다.\n- 사양은 은행 정보나 라우팅 정보를 평문으로 온체인에 넣지 말라고 경고합니다. 오프체인 채널을 쓰거나, 최소한 `instructions` 문자열을 암호화하세요.\n- `operationId`는 공유 네임스페이스이므로 고유한 접두사를 사용하세요. 이벤트가 이를 `string`으로 인덱싱하기 때문에 로그에는 해시만 들어갑니다.\n- 운영자는 요청을 이행하거나 거부하는 데 있어 전적으로 신뢰받습니다. 이 표준은 절차를 기록할 뿐 결제를 강제하지 않습니다.\n"},"zh":{"lang":"zh","tldr":"一个 ERC-20 扩展，让钱包所有者可以在链上请求新代币（例如换取法币付款），由运营方处理、执行或拒绝每一笔充值订单。","tags":["token","erc20","e-money","minting","payments"],"related":[20,1066,1996,2018,2020],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-2019/","markdown":"## 它解决什么问题？\n\n对于受监管、以法币为支撑的代币（银行货币、电子货币），把代币放进你的钱包通常从链下开始：你先发起银行转账，然后发行方铸造。请求本身在链上是看不见的。\n\nERC-2019 把*请求*搬到链上。钱包所有者提交带有支付指示的充值订单；代币运营方处理订单并记录每次状态变化。这为充值提供了可追踪、可审计的生命周期，而具体的支付细节仍保留在私有渠道中。\n\n它是同一作者为电子货币代币提出的一系列提案之一，与 [Holdable](/eip-1996/)、[Clearable](/eip-2018/) 以及总括性的 [E-Money](/eip-2020/) 代币并列。\n\n## 它如何运作\n\n三个角色：**钱包所有者**、获授权代其操作的可选 **orderer**，以及负责铸造的代币**运营方**。\n\n每个订单由字符串 `operationId` 标识，状态流转如下：\n\n```\nOrdered ──processFund──▶ InProcess ──executeFund──▶ Executed (tokens minted)\n   │                         └──────rejectFund────▶ Rejected\n   └──cancelFund──▶ Cancelled   (only before InProcess)\n```\n\n主要函数：\n\n| 函数 | 调用者 | 用途 |\n| --- | --- | --- |\n| `authorizeFundOperator(orderer)` / `revokeFundOperator` | 所有者 | 允许或停止另一个地址代你下单 |\n| `orderFund(id, value, instructions)` | 所有者 | 请求为自己的钱包充值 |\n| `orderFundFrom(id, wallet, value, instructions)` | orderer | 代表所有者发起请求 |\n| `cancelFund(id)` | 所有者/orderer | 在处理开始前取消 |\n| `processFund(id)` / `executeFund(id)` / `rejectFund(id, reason)` | 运营方 | 推进订单；execute 会铸造代币 |\n| `retrieveFundData(orderer, id)` | view | 钱包、金额、指示、状态 |\n\n每一步都会触发事件（`FundOrdered`、`FundInProcess`、`FundExecuted`、`FundRejected`、`FundCancelled` 等）。拒绝原因可以使用 [ERC-1066](/eip-1066/) 状态码。`operationId` 不得重复使用。\n\n## 示例代码\n\n用 ethers v6 下达并监听充值请求：\n\n```ts\nimport { Contract, parseUnits } from \"ethers\";\n\nconst abi = [\n  \"function orderFund(string operationId, uint256 value, string instructions) returns (bool)\",\n  \"event FundExecuted(address indexed orderer, string indexed operationId)\",\n];\nconst token = new Contract(tokenAddress, abi, signer);\n\nconst opId = `acme-${crypto.randomUUID()}`;          // prefix to avoid collisions\nawait token.orderFund(opId, parseUnits(\"250\", decimals), \"ref:INV-2041\"); // keep sensitive data off-chain\n\ntoken.on(\"FundExecuted\", (orderer, _opIdHash, ev) =\u003e {\n  if (orderer === signer.address) console.log(\"funded in\", ev.log.transactionHash);\n});\n```\n\n## 需要注意\n\n- 状态为 **Stagnant**。接口没有最终确定。\n- 规范警告不要把银行或路由信息以明文放到链上。请使用链下渠道，或者至少对 `instructions` 字符串加密。\n- `operationId` 是共享命名空间，因此请使用唯一前缀。由于事件把它作为 `string` 建立索引，日志中只包含它的哈希。\n- 运营方是否兑现或拒绝请求完全取决于对其的信任；该标准只记录流程，并不强制付款。\n"}},"requiredBy":[2020]}
