{"eip":747,"title":"wallet_watchAsset RPC Method","description":"Adds a new RPC method that allows websites to prompt users to watch an asset","authors":["Dan Finlay (@danfinlay)","Esteban Mino (@estebanmino)","Gavin John (@Pandapip1)"],"status":"Final","type":"Standards Track","category":"Interface","created":"2018-08-13","requires":[20,1046,1193],"discussionsTo":"https://ethereum-magicians.org/t/eip-747-eth-watchtoken/1048","repo":"EIPs","label":"EIP-747","officialUrl":"https://eips.ethereum.org/EIPS/eip-747","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-747.md","url":"https://eips.huatuo.xyz/eip-747/","tldr":{"en":"Defines wallet_watchAsset, an RPC method that lets a dapp ask the user's wallet to start tracking a token, so users don't have to paste contract addresses by hand.","ja":"dapp がユーザーのウォレットにトークンの追跡開始を依頼できる RPC メソッド wallet_watchAsset を定義し、ユーザーがコントラクトアドレスを手作業で貼り付けなくて済むようにする。","ko":"dapp이 사용자의 지갑에 토큰 추적을 시작해 달라고 요청할 수 있는 RPC 메서드 wallet_watchAsset을 정의해, 사용자가 컨트랙트 주소를 직접 붙여넣지 않아도 되게 한다.","zh":"定义 wallet_watchAsset 这一 RPC 方法，让 dapp 请求用户钱包开始追踪某个代币，用户无需手动粘贴合约地址。"},"tags":["wallet","rpc","token","ux","interface"],"explainers":{"en":{"lang":"en","tldr":"Defines wallet_watchAsset, an RPC method that lets a dapp ask the user's wallet to start tracking a token, so users don't have to paste contract addresses by hand.","tags":["wallet","rpc","token","ux","interface"],"related":[20,1046,1193,55,3085],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-747/","markdown":"## What problem does it solve?\n\nWallets show your token balances only for tokens they know about. Without a standard, they had two bad options:\n\n- **Keep a curated token list.** That costs the wallet bandwidth to poll many contracts, gives it a security burden, and puts it under pressure to list obscure tokens.\n- **Make users add tokens by hand**, by pasting a contract address and entering the symbol and decimals. That is a poor experience and easy to get wrong.\n\nShowing every token automatically is not a fix either. Airdropped spam and phishing tokens would fill everyone's wallet. The spec's insight is that the best moment to add a token is when a user is on the token's own site and wants to see it.\n\n## How it works\n\nA dapp calls the new method through the [EIP-1193](/eip-1193/) provider with **one object** parameter:\n\n```ts\ninterface WatchAssetParameters {\n  type: string;   // asset interface, e.g. \"ERC1046\" or legacy \"ERC20\"\n  options: any;   // fields depend on type\n}\n```\n\nFor both the `ERC1046` and legacy `ERC20` types, `options.address` is **required** and must be a `0x`-prefixed, [EIP-55](/eip-55/) checksummed contract address. `options.chainId` is optional and defaults to the active chain. A bad checksum or an unknown chain makes the request invalid.\n\nFor `ERC1046`, the wallet must fetch the token's [ERC-1046](/eip-1046/) `tokenURI` metadata. That gives it name, symbol and image without the dapp having to supply them.\n\nThe method **returns `true` right away** if the request is valid, before the user decides. This prevents a site from learning which tokens a user holds (fingerprinting). It returns an error if the request is invalid, for example an unsupported type, a blocked token, or failed metadata.\n\n## Sample code\n\nFrom a dapp, with an injected provider:\n\n```ts\nconst added = await window.ethereum.request({\n  method: \"wallet_watchAsset\",\n  params: {\n    type: \"ERC20\",\n    options: {\n      address: \"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\", // USDC on mainnet, checksummed\n      chainId: 1,\n    },\n  },\n});\n// true = request accepted by the wallet, not \"the user clicked Add\"\n```\n\n## Things to know\n\n- `true` means only that the request was valid. Do not treat it as confirmation that the token was added.\n- Wallets should warn when a token's name or symbol looks like a well-known token but the address or chain does not match. This is a common phishing pattern.\n- Fetching metadata from arbitrary URLs is a server-side request forgery (SSRF) risk. The spec tells wallets to allowlist schemes and ports.\n- In practice, wallets such as MetaMask also accept `symbol`, `decimals` and `image` in `options` for the `ERC20` type. Those fields are not part of this spec's text. The spec recommends the `ERC1046` type, which gets metadata from the token itself.\n- A related wallet method for adding networks is [EIP-3085](/eip-3085/) `wallet_addEthereumChain`, which is Stagnant.\n"},"ja":{"lang":"ja","tldr":"dapp がユーザーのウォレットにトークンの追跡開始を依頼できる RPC メソッド wallet_watchAsset を定義し、ユーザーがコントラクトアドレスを手作業で貼り付けなくて済むようにする。","tags":["wallet","rpc","token","ux","interface"],"related":[20,1046,1193,55,3085],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-747/","markdown":"## 何を解決するのか\n\nウォレットが残高を表示するのは、自分が知っているトークンだけです。標準がなければ、ウォレットには 2 つの悪い選択肢がありました。\n\n- **厳選したトークンリストを管理する。** 多数のコントラクトをポーリングするための帯域がウォレットの負担になり、セキュリティ上の責任も生じ、無名のトークンを載せるよう圧力を受けます。\n- **ユーザーに手作業で追加させる。** コントラクトアドレスを貼り付け、シンボルと decimals を入力させる方法です。体験が悪く、間違えやすいものです。\n\nすべてのトークンを自動表示するのも解決策にはなりません。エアドロップされたスパムやフィッシング用のトークンが、全員のウォレットを埋め尽くしてしまいます。この仕様の洞察は、トークンを追加する最適なタイミングは、ユーザーがそのトークン自身のサイトにいて、表示したいと思っているときだということです。\n\n## 仕組み\n\ndapp は [EIP-1193](/eip-1193/) プロバイダー経由で、**1 つのオブジェクト**を引数にして新しいメソッドを呼び出します。\n\n```ts\ninterface WatchAssetParameters {\n  type: string;   // asset interface, e.g. \"ERC1046\" or legacy \"ERC20\"\n  options: any;   // fields depend on type\n}\n```\n\n`ERC1046` 型でもレガシーの `ERC20` 型でも、`options.address` は**必須**で、`0x` で始まり [EIP-55](/eip-55/) のチェックサムが付いたコントラクトアドレスでなければなりません。`options.chainId` は任意で、省略時は現在のチェーンになります。チェックサムが不正だったり、未知のチェーンだったりするとリクエストは無効になります。\n\n`ERC1046` の場合、ウォレットはトークンの [ERC-1046](/eip-1046/) `tokenURI` メタデータを取得しなければなりません。これにより、dapp が提供しなくても名前、シンボル、画像を得られます。\n\nこのメソッドは、リクエストが有効であれば、ユーザーが判断する前に**すぐに `true` を返します**。これにより、サイトがユーザーの保有トークンを知ること（フィンガープリンティング）を防ぎます。リクエストが無効な場合（サポートされない型、ブロックされたトークン、メタデータの取得失敗など）はエラーを返します。\n\n## サンプルコード\n\ndapp から、注入されたプロバイダーを使う例:\n\n```ts\nconst added = await window.ethereum.request({\n  method: \"wallet_watchAsset\",\n  params: {\n    type: \"ERC20\",\n    options: {\n      address: \"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\", // USDC on mainnet, checksummed\n      chainId: 1,\n    },\n  },\n});\n// true = request accepted by the wallet, not \"the user clicked Add\"\n```\n\n## 知っておくべきこと\n\n- `true` が意味するのは、リクエストが有効だったということだけです。トークンが追加された確認として扱わないでください。\n- トークンの名前やシンボルが有名なトークンに似ているのにアドレスやチェーンが一致しない場合、ウォレットは警告すべきです。これはよくあるフィッシングの手口です。\n- 任意の URL からメタデータを取得することは、サーバーサイドリクエストフォージェリ（SSRF）のリスクになります。仕様はウォレットに、スキームとポートの許可リストを使うよう求めています。\n- 実際には、MetaMask などのウォレットは `ERC20` 型の `options` で `symbol`、`decimals`、`image` も受け付けます。これらのフィールドはこの仕様の本文には含まれていません。仕様は、トークン自身からメタデータを取得する `ERC1046` 型を推奨しています。\n- ネットワークを追加する関連のウォレットメソッドとして、[EIP-3085](/eip-3085/) の `wallet_addEthereumChain` がありますが、これは Stagnant です。\n"},"ko":{"lang":"ko","tldr":"dapp이 사용자의 지갑에 토큰 추적을 시작해 달라고 요청할 수 있는 RPC 메서드 wallet_watchAsset을 정의해, 사용자가 컨트랙트 주소를 직접 붙여넣지 않아도 되게 한다.","tags":["wallet","rpc","token","ux","interface"],"related":[20,1046,1193,55,3085],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-747/","markdown":"## 어떤 문제를 해결하나요?\n\n지갑은 자신이 아는 토큰의 잔액만 보여줍니다. 표준이 없으면 지갑에게는 두 가지 나쁜 선택지가 있었습니다.\n\n- **엄선한 토큰 목록을 유지한다.** 많은 컨트랙트를 폴링하는 데 지갑의 대역폭이 들고, 보안 부담이 생기며, 잘 알려지지 않은 토큰을 목록에 올려야 한다는 압박도 받습니다.\n- **사용자가 직접 토큰을 추가하게 한다.** 컨트랙트 주소를 붙여넣고 심볼과 decimals를 입력하게 하는 방식입니다. 경험이 나쁘고 실수하기 쉽습니다.\n\n모든 토큰을 자동으로 보여주는 것도 해결책이 아닙니다. 에어드롭된 스팸과 피싱 토큰이 모두의 지갑을 채우게 됩니다. 명세의 통찰은, 토큰을 추가하기 가장 좋은 순간이 사용자가 그 토큰의 사이트에 있고 그것을 보고 싶어 할 때라는 것입니다.\n\n## 어떻게 동작하나요?\n\ndapp은 [EIP-1193](/eip-1193/) 프로바이더를 통해 **객체 하나**를 매개변수로 이 새 메서드를 호출합니다.\n\n```ts\ninterface WatchAssetParameters {\n  type: string;   // asset interface, e.g. \"ERC1046\" or legacy \"ERC20\"\n  options: any;   // fields depend on type\n}\n```\n\n`ERC1046`과 레거시 `ERC20` 유형 모두 `options.address`는 **필수**이며 `0x`로 시작하고 [EIP-55](/eip-55/) 체크섬이 적용된 컨트랙트 주소여야 합니다. `options.chainId`는 선택이며 기본값은 현재 활성 체인입니다. 체크섬이 잘못되었거나 알 수 없는 체인이면 요청은 유효하지 않습니다.\n\n`ERC1046`의 경우 지갑은 토큰의 [ERC-1046](/eip-1046/) `tokenURI` 메타데이터를 가져와야 합니다. 이를 통해 dapp이 제공하지 않아도 이름, 심볼, 이미지를 얻습니다.\n\n이 메서드는 요청이 유효하면 사용자가 결정하기 전에 **즉시 `true`를 반환합니다**. 이는 사이트가 사용자가 어떤 토큰을 보유하는지 알아내는 것(핑거프린팅)을 막습니다. 요청이 유효하지 않으면(예: 지원하지 않는 유형, 차단된 토큰, 메타데이터 가져오기 실패) 오류를 반환합니다.\n\n## 샘플 코드\n\ndapp에서 주입된 프로바이더를 사용하는 예:\n\n```ts\nconst added = await window.ethereum.request({\n  method: \"wallet_watchAsset\",\n  params: {\n    type: \"ERC20\",\n    options: {\n      address: \"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\", // USDC on mainnet, checksummed\n      chainId: 1,\n    },\n  },\n});\n// true = request accepted by the wallet, not \"the user clicked Add\"\n```\n\n## 알아둘 점\n\n- `true`는 요청이 유효했다는 뜻일 뿐입니다. 토큰이 추가되었다는 확인으로 취급하지 마세요.\n- 토큰의 이름이나 심볼이 유명한 토큰처럼 보이는데 주소나 체인이 맞지 않으면 지갑은 경고해야 합니다. 이는 흔한 피싱 수법입니다.\n- 임의의 URL에서 메타데이터를 가져오는 것은 서버 측 요청 위조(SSRF) 위험이 있습니다. 명세는 지갑이 스킴과 포트를 허용 목록으로 제한하라고 지시합니다.\n- 실제로 MetaMask 같은 지갑은 `ERC20` 유형에서 `options`의 `symbol`, `decimals`, `image`도 받아들입니다. 이 필드들은 이 명세의 본문에 포함되어 있지 않습니다. 명세는 토큰 자체에서 메타데이터를 가져오는 `ERC1046` 유형을 권장합니다.\n- 네트워크를 추가하는 관련 지갑 메서드로 [EIP-3085](/eip-3085/)의 `wallet_addEthereumChain`이 있으며, 이는 Stagnant 상태입니다.\n"},"zh":{"lang":"zh","tldr":"定义 wallet_watchAsset 这一 RPC 方法，让 dapp 请求用户钱包开始追踪某个代币，用户无需手动粘贴合约地址。","tags":["wallet","rpc","token","ux","interface"],"related":[20,1046,1193,55,3085],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-747/","markdown":"## 它解决什么问题？\n\n钱包只会显示它所认识的代币的余额。没有标准时，钱包有两个糟糕的选择：\n\n- **维护一份精选代币列表。** 这会让钱包耗费带宽去轮询大量合约，带来安全负担，还会面临列入冷门代币的压力。\n- **让用户手动添加代币**，即粘贴合约地址并输入符号和 decimals。这种体验很差，也很容易出错。\n\n自动显示所有代币同样不是办法。空投的垃圾代币和钓鱼代币会塞满每个人的钱包。规范的洞见在于：添加代币的最佳时机，是用户正处在该代币自己的网站上并且想看到它的时候。\n\n## 它如何运作\n\ndapp 通过 [EIP-1193](/eip-1193/) provider 调用这个新方法，参数是**一个对象**：\n\n```ts\ninterface WatchAssetParameters {\n  type: string;   // asset interface, e.g. \"ERC1046\" or legacy \"ERC20\"\n  options: any;   // fields depend on type\n}\n```\n\n无论是 `ERC1046` 还是传统的 `ERC20` 类型，`options.address` 都是**必填**项，且必须是以 `0x` 开头、符合 [EIP-55](/eip-55/) 校验和的合约地址。`options.chainId` 可选，默认为当前活动的链。校验和错误或链未知都会使请求无效。\n\n对于 `ERC1046`，钱包必须获取该代币的 [ERC-1046](/eip-1046/) `tokenURI` 元数据。这样无需 dapp 提供，钱包就能得到名称、符号和图片。\n\n只要请求有效，该方法就会在用户做出决定之前**立即返回 `true`**。这可以防止网站得知用户持有哪些代币（指纹识别）。如果请求无效，例如类型不受支持、代币被屏蔽或元数据获取失败，则返回错误。\n\n## 示例代码\n\n在 dapp 中使用注入的 provider：\n\n```ts\nconst added = await window.ethereum.request({\n  method: \"wallet_watchAsset\",\n  params: {\n    type: \"ERC20\",\n    options: {\n      address: \"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\", // USDC on mainnet, checksummed\n      chainId: 1,\n    },\n  },\n});\n// true = request accepted by the wallet, not \"the user clicked Add\"\n```\n\n## 需要注意\n\n- `true` 仅表示请求有效。不要把它当作代币已被添加的确认。\n- 当代币的名称或符号看起来像知名代币，但地址或链对不上时，钱包应当发出警告。这是常见的钓鱼手法。\n- 从任意 URL 获取元数据存在服务端请求伪造（SSRF）风险。规范要求钱包对协议和端口使用白名单。\n- 实际上，MetaMask 等钱包对 `ERC20` 类型还接受 `options` 中的 `symbol`、`decimals` 和 `image`。这些字段不在本规范的正文中。规范推荐使用 `ERC1046` 类型，它从代币本身获取元数据。\n- 添加网络的相关钱包方法是 [EIP-3085](/eip-3085/) 的 `wallet_addEthereumChain`，它处于 Stagnant 状态。\n"}}}
