{"eip":7682,"title":"Auxiliary Funds Capability","description":"A capability allowing wallets to indicate that they have access to additional funds.","authors":["Lukas Rosario (@lukasrosario)","Wilson Cusack (@wilsoncusack)","Alex Donesky (@adonesky1)"],"status":"Draft","type":"Standards Track","category":"ERC","created":"2024-04-09","requires":[5792],"discussionsTo":"https://ethereum-magicians.org/t/erc-7682-auxiliary-funds-capability/19599","repo":"ERCs","label":"ERC-7682","officialUrl":"https://eips.ethereum.org/EIPS/eip-7682","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-7682.md","url":"https://eips.huatuo.xyz/eip-7682/","tldr":{"en":"An EIP-5792 wallet capability that tells apps the wallet can reach funds beyond its onchain balance, so apps stop blocking users on simple balance checks.","ja":"EIP-5792 のウォレット機能（capability）の 1 つ。ウォレットがオンチェーン残高以外の資金も用意できることをアプリに伝え、アプリが単純な残高チェックでユーザーをブロックしないようにする。","ko":"EIP-5792 지갑 capability의 하나. 지갑이 온체인 잔액 너머의 자금도 조달할 수 있음을 앱에 알려, 앱이 단순한 잔액 확인으로 사용자를 막지 않도록 한다.","zh":"EIP-5792 的一项钱包能力（capability），告知应用该钱包能够调用链上余额之外的资金，让应用不再因简单的余额检查而阻止用户。"},"tags":["wallet","capabilities","rpc","ux","chain-abstraction"],"explainers":{"en":{"lang":"en","tldr":"An EIP-5792 wallet capability that tells apps the wallet can reach funds beyond its onchain balance, so apps stop blocking users on simple balance checks.","tags":["wallet","capabilities","rpc","ux","chain-abstraction"],"related":[5792,7528,4337],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-7682/","markdown":"## What problem does it solve?\n\nMany dapps look up your balance before letting you act. If a DEX sees you hold 50 USDC at your address, it greys out the \"Swap 100 USDC\" button. That check is wrong for more advanced wallets that can pull funds from elsewhere just in time: an offchain onramp, another account the wallet manages, or a balance on a different chain that can be bridged.\n\nERC-7682 gives the wallet a standard way to say \"I can get more funds than you see onchain\", so the app lets the user continue and the wallet sorts out funding.\n\n## How it works\n\nThe proposal builds on [EIP-5792](/eip-5792/), where apps call `wallet_getCapabilities` to learn what a wallet supports per chain.\n\n- A wallet with auxiliary funds on a chain returns an `auxiliaryFunds` object with `supported: true` for that chain.\n- It may add an `assets` array listing token addresses it can top up. If the array is missing, the app should assume any asset. The native coin is written as `0xEeee…EEeE`, following [ERC-7528](/eip-7528/).\n- When an app sees the capability, it SHOULD NOT block actions based on balance checks. The spec deliberately does not say where the funds come from.\n\nThere is an optional extension for `wallet_sendCalls`: the app can attach `requiredAssets` inside `capabilities.auxiliaryFunds`, listing each token's `address`, `amount` (hex, smallest unit), `standard` (`erc20`, `erc721` or `erc1155`) and, for NFTs, a `tokenId`. This helps the wallet know what to bridge or swap, because calldata alone often doesn't reveal what a transaction will need. Native-asset needs are inferred from each call's `value`. Supporting the base capability does not imply supporting `requiredAssets`.\n\nProvisioning (bridging, swapping) happens separately from the call bundle; `atomicRequired` covers only the calls. Apps track progress with `wallet_getCallsStatus`. Error codes 5770–5773 cover failed provisioning, unsupported assets, the capability no longer being available, and malformed `requiredAssets`.\n\n## Sample code\n\nDetect the capability and send calls with `requiredAssets` (plain EIP-1193 provider):\n\n```ts\nconst chainId = \"0x2105\"; // Base\nconst caps = await provider.request({\n  method: \"wallet_getCapabilities\",\n  params: [account, [chainId]],\n});\n\nconst aux = caps?.[chainId]?.auxiliaryFunds;\nconst skipBalanceCheck = aux?.supported === true;\n\nawait provider.request({\n  method: \"wallet_sendCalls\",\n  params: [{\n    version: \"2.0.0\",\n    from: account,\n    chainId,\n    atomicRequired: true,\n    calls: [{ to: vault, data: depositCalldata }],\n    capabilities: {\n      auxiliaryFunds: {\n        optional: true, // wallets without the capability can ignore it\n        requiredAssets: [\n          { address: usdc, amount: \"0x5f5e100\", standard: \"erc20\" }, // 100 USDC (6 decimals)\n        ],\n      },\n    },\n  }],\n});\n```\n\n## Things to know\n\n- Status: **Draft**. Field names and error codes may still change.\n- It is only a hint to the app's UI. Contracts must still check balances onchain, and apps must handle the wallet failing to provision funds.\n- Apps should send `requiredAssets` only when the wallet advertises `auxiliaryFunds`, and mark it `optional: true` for compatibility.\n- Wallets must interpret `amount` using the token's decimals.\n- Related wallet-RPC work: [EIP-5792](/eip-5792/) (the base `wallet_sendCalls` API) and [ERC-4337](/eip-4337/) smart accounts, which often back such wallets.\n"},"ja":{"lang":"ja","tldr":"EIP-5792 のウォレット機能（capability）の 1 つ。ウォレットがオンチェーン残高以外の資金も用意できることをアプリに伝え、アプリが単純な残高チェックでユーザーをブロックしないようにする。","tags":["wallet","capabilities","rpc","ux","chain-abstraction"],"related":[5792,7528,4337],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-7682/","markdown":"## 何を解決するのか\n\n多くの dapp は、操作を許可する前に残高を確認します。DEX は、あなたのアドレスに 50 USDC しかないことを見ると「100 USDC をスワップ」ボタンをグレーアウトします。しかし、より高度なウォレットは、オフチェーンのオンランプ、ウォレットが管理する別のアカウント、ブリッジ可能な別チェーン上の残高など、必要なときに別の場所から資金を引き出せるため、このチェックは正しくありません。\n\nERC-7682 は、ウォレットが「オンチェーンで見えている以上の資金を調達できる」と伝える標準的な方法を提供します。これによりアプリはユーザーを先に進ませ、資金の手当てはウォレットが行います。\n\n## 仕組み\n\nこの提案は [EIP-5792](/eip-5792/) を土台にしており、アプリは `wallet_getCapabilities` を呼び出して、ウォレットがチェーンごとに何に対応しているかを知ります。\n\n- あるチェーンで補助的な資金を持つウォレットは、そのチェーンについて `supported: true` を持つ `auxiliaryFunds` オブジェクトを返します。\n- 補充可能なトークンアドレスを列挙する `assets` 配列を追加することもできます。配列がない場合、アプリはどのアセットでも対応可能と想定すべきです。ネイティブコインは [ERC-7528](/eip-7528/) に従い `0xEeee…EEeE` と書きます。\n- アプリはこの機能を確認したら、残高チェックに基づいて操作をブロックしてはいけません（SHOULD NOT）。資金の出どころについては、仕様はあえて何も定めていません。\n\n`wallet_sendCalls` にはオプションの拡張があります。アプリは `capabilities.auxiliaryFunds` の中に `requiredAssets` を付けて、各トークンの `address`、`amount`（16 進数、最小単位）、`standard`（`erc20`、`erc721`、`erc1155`）、NFT の場合は `tokenId` を列挙できます。calldata だけではトランザクションが何を必要とするか分からないことが多いため、これはウォレットが何をブリッジまたはスワップすべきかを知る助けになります。ネイティブアセットの必要量は各 call の `value` から推定されます。基本の capability に対応していても、`requiredAssets` に対応しているとは限りません。\n\n資金の調達（ブリッジ、スワップ）は call バンドルとは別に行われ、`atomicRequired` が対象とするのは call だけです。アプリは `wallet_getCallsStatus` で進捗を追跡します。エラーコード 5770～5773 は、資金調達の失敗、未対応のアセット、capability が利用できなくなったこと、`requiredAssets` の形式不正を表します。\n\n## サンプルコード\n\ncapability を検出し、`requiredAssets` 付きで call を送信する例（素の EIP-1193 provider）：\n\n```ts\nconst chainId = \"0x2105\"; // Base\nconst caps = await provider.request({\n  method: \"wallet_getCapabilities\",\n  params: [account, [chainId]],\n});\n\nconst aux = caps?.[chainId]?.auxiliaryFunds;\nconst skipBalanceCheck = aux?.supported === true;\n\nawait provider.request({\n  method: \"wallet_sendCalls\",\n  params: [{\n    version: \"2.0.0\",\n    from: account,\n    chainId,\n    atomicRequired: true,\n    calls: [{ to: vault, data: depositCalldata }],\n    capabilities: {\n      auxiliaryFunds: {\n        optional: true, // wallets without the capability can ignore it\n        requiredAssets: [\n          { address: usdc, amount: \"0x5f5e100\", standard: \"erc20\" }, // 100 USDC (6 decimals)\n        ],\n      },\n    },\n  }],\n});\n```\n\n## 知っておくべきこと\n\n- ステータス：**Draft**。フィールド名やエラーコードはまだ変わる可能性があります。\n- あくまでアプリの UI へのヒントにすぎません。コントラクトは引き続きオンチェーンで残高を確認する必要があり、アプリはウォレットが資金調達に失敗する場合にも対処しなければなりません。\n- アプリは、ウォレットが `auxiliaryFunds` を通知している場合にのみ `requiredAssets` を送るべきで、互換性のために `optional: true` を付けてください。\n- ウォレットは `amount` をトークンの decimals で解釈しなければなりません。\n- 関連するウォレット RPC の取り組み：[EIP-5792](/eip-5792/)（基本となる `wallet_sendCalls` API）と、こうしたウォレットを支えることが多い [ERC-4337](/eip-4337/) スマートアカウント。\n"},"ko":{"lang":"ko","tldr":"EIP-5792 지갑 capability의 하나. 지갑이 온체인 잔액 너머의 자금도 조달할 수 있음을 앱에 알려, 앱이 단순한 잔액 확인으로 사용자를 막지 않도록 한다.","tags":["wallet","capabilities","rpc","ux","chain-abstraction"],"related":[5792,7528,4337],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-7682/","markdown":"## 어떤 문제를 해결하나요?\n\n많은 dapp은 사용자가 동작하기 전에 잔액부터 조회합니다. DEX는 내 주소에 50 USDC만 있는 것을 보면 \"100 USDC 스왑\" 버튼을 회색으로 만듭니다. 하지만 더 고급인 지갑은 오프체인 온램프, 지갑이 관리하는 다른 계정, 브리지할 수 있는 다른 체인의 잔액처럼 필요한 순간에 다른 곳에서 자금을 가져올 수 있으므로 이런 확인은 틀린 것입니다.\n\nERC-7682는 지갑이 \"온체인에서 보이는 것보다 더 많은 자금을 마련할 수 있다\"고 알리는 표준 방법을 제공합니다. 그러면 앱은 사용자를 계속 진행시키고, 자금 마련은 지갑이 처리합니다.\n\n## 어떻게 동작하나요?\n\n이 제안은 [EIP-5792](/eip-5792/)를 기반으로 하며, 앱은 `wallet_getCapabilities`를 호출해 지갑이 체인별로 무엇을 지원하는지 알아냅니다.\n\n- 어떤 체인에서 보조 자금을 가진 지갑은 그 체인에 대해 `supported: true`인 `auxiliaryFunds` 객체를 반환합니다.\n- 보충할 수 있는 토큰 주소를 나열한 `assets` 배열을 추가할 수도 있습니다. 배열이 없으면 앱은 어떤 자산이든 가능하다고 가정해야 합니다. 네이티브 코인은 [ERC-7528](/eip-7528/)에 따라 `0xEeee…EEeE`로 표기합니다.\n- 앱은 이 capability를 보면 잔액 확인을 이유로 동작을 막아서는 안 됩니다(SHOULD NOT). 자금이 어디서 오는지는 스펙이 의도적으로 정하지 않습니다.\n\n`wallet_sendCalls`에는 선택적 확장이 있습니다. 앱은 `capabilities.auxiliaryFunds` 안에 `requiredAssets`를 붙여 각 토큰의 `address`, `amount`(16진수, 최소 단위), `standard`(`erc20`, `erc721`, `erc1155`), NFT의 경우 `tokenId`를 나열할 수 있습니다. calldata만으로는 트랜잭션에 무엇이 필요한지 드러나지 않는 경우가 많기 때문에, 이는 지갑이 무엇을 브리지하거나 스왑해야 하는지 아는 데 도움이 됩니다. 네이티브 자산 필요량은 각 call의 `value`로 추정합니다. 기본 capability를 지원한다고 해서 `requiredAssets`까지 지원한다는 뜻은 아닙니다.\n\n자금 마련(브리지, 스왑)은 call 번들과 별도로 이루어지며, `atomicRequired`는 call만 대상으로 합니다. 앱은 `wallet_getCallsStatus`로 진행 상황을 추적합니다. 에러 코드 5770~5773은 자금 마련 실패, 지원하지 않는 자산, capability가 더 이상 사용 불가능한 경우, 잘못된 형식의 `requiredAssets`를 나타냅니다.\n\n## 샘플 코드\n\ncapability를 감지하고 `requiredAssets`와 함께 call을 보내는 예(순수 EIP-1193 provider):\n\n```ts\nconst chainId = \"0x2105\"; // Base\nconst caps = await provider.request({\n  method: \"wallet_getCapabilities\",\n  params: [account, [chainId]],\n});\n\nconst aux = caps?.[chainId]?.auxiliaryFunds;\nconst skipBalanceCheck = aux?.supported === true;\n\nawait provider.request({\n  method: \"wallet_sendCalls\",\n  params: [{\n    version: \"2.0.0\",\n    from: account,\n    chainId,\n    atomicRequired: true,\n    calls: [{ to: vault, data: depositCalldata }],\n    capabilities: {\n      auxiliaryFunds: {\n        optional: true, // wallets without the capability can ignore it\n        requiredAssets: [\n          { address: usdc, amount: \"0x5f5e100\", standard: \"erc20\" }, // 100 USDC (6 decimals)\n        ],\n      },\n    },\n  }],\n});\n```\n\n## 알아둘 점\n\n- 상태: **Draft**. 필드 이름과 에러 코드는 아직 바뀔 수 있습니다.\n- 앱 UI에 주는 힌트일 뿐입니다. 컨트랙트는 여전히 온체인에서 잔액을 확인해야 하고, 앱은 지갑이 자금 마련에 실패하는 경우도 처리해야 합니다.\n- 앱은 지갑이 `auxiliaryFunds`를 알린 경우에만 `requiredAssets`를 보내야 하며, 호환성을 위해 `optional: true`로 표시하세요.\n- 지갑은 `amount`를 토큰의 decimals에 맞춰 해석해야 합니다.\n- 관련 지갑 RPC 작업: [EIP-5792](/eip-5792/)(기본 `wallet_sendCalls` API)와, 이런 지갑을 뒷받침하는 경우가 많은 [ERC-4337](/eip-4337/) 스마트 계정.\n"},"zh":{"lang":"zh","tldr":"EIP-5792 的一项钱包能力（capability），告知应用该钱包能够调用链上余额之外的资金，让应用不再因简单的余额检查而阻止用户。","tags":["wallet","capabilities","rpc","ux","chain-abstraction"],"related":[5792,7528,4337],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-7682/","markdown":"## 它解决什么问题？\n\n许多 dapp 在允许你操作之前会先查询余额。如果 DEX 看到你的地址上只有 50 USDC，就会把“兑换 100 USDC”按钮置灰。但对于更高级的钱包来说，这种检查是错误的，因为它们可以即时从别处调入资金：链下入金通道、钱包管理的另一个账户，或者可以跨链桥接的另一条链上的余额。\n\nERC-7682 为钱包提供了一种标准方式来表示“我能获得比你在链上看到的更多的资金”，这样应用就会让用户继续操作，由钱包来解决资金问题。\n\n## 它如何运作\n\n该提案建立在 [EIP-5792](/eip-5792/) 之上，应用通过调用 `wallet_getCapabilities` 来了解钱包在各条链上支持什么。\n\n- 在某条链上拥有辅助资金的钱包，会为该链返回一个 `auxiliaryFunds` 对象，其中 `supported: true`。\n- 它还可以添加一个 `assets` 数组，列出它可以补充的代币地址。如果缺少该数组，应用应假定支持任意资产。原生币按照 [ERC-7528](/eip-7528/) 写作 `0xEeee…EEeE`。\n- 当应用看到这项能力时，不应（SHOULD NOT）基于余额检查来阻止操作。规范有意不说明资金从哪里来。\n\n`wallet_sendCalls` 有一个可选扩展：应用可以在 `capabilities.auxiliaryFunds` 中附上 `requiredAssets`，列出每个代币的 `address`、`amount`（十六进制，最小单位）、`standard`（`erc20`、`erc721` 或 `erc1155`），对于 NFT 还有 `tokenId`。由于仅凭 calldata 往往无法看出交易需要什么，这能帮助钱包知道需要桥接或兑换什么。原生资产的需求由每个 call 的 `value` 推断。支持基础 capability 并不意味着支持 `requiredAssets`。\n\n资金筹备（桥接、兑换）与 call 批次分开进行；`atomicRequired` 只涵盖这些 call。应用通过 `wallet_getCallsStatus` 跟踪进度。错误码 5770–5773 分别对应筹备失败、不支持的资产、该能力不再可用，以及 `requiredAssets` 格式错误。\n\n## 示例代码\n\n检测该能力，并在发送 call 时附带 `requiredAssets`（普通 EIP-1193 provider）：\n\n```ts\nconst chainId = \"0x2105\"; // Base\nconst caps = await provider.request({\n  method: \"wallet_getCapabilities\",\n  params: [account, [chainId]],\n});\n\nconst aux = caps?.[chainId]?.auxiliaryFunds;\nconst skipBalanceCheck = aux?.supported === true;\n\nawait provider.request({\n  method: \"wallet_sendCalls\",\n  params: [{\n    version: \"2.0.0\",\n    from: account,\n    chainId,\n    atomicRequired: true,\n    calls: [{ to: vault, data: depositCalldata }],\n    capabilities: {\n      auxiliaryFunds: {\n        optional: true, // wallets without the capability can ignore it\n        requiredAssets: [\n          { address: usdc, amount: \"0x5f5e100\", standard: \"erc20\" }, // 100 USDC (6 decimals)\n        ],\n      },\n    },\n  }],\n});\n```\n\n## 需要注意\n\n- 状态：**Draft**。字段名称和错误码仍可能变化。\n- 它只是给应用 UI 的一个提示。合约仍必须在链上检查余额，应用也必须处理钱包筹备资金失败的情况。\n- 应用只应在钱包声明了 `auxiliaryFunds` 时才发送 `requiredAssets`，并为了兼容性将其标记为 `optional: true`。\n- 钱包必须按照代币的 decimals 来解释 `amount`。\n- 相关的钱包 RPC 工作：[EIP-5792](/eip-5792/)（基础的 `wallet_sendCalls` API）以及 [ERC-4337](/eip-4337/) 智能账户（这类钱包通常基于它）。\n"}}}
