EIP-747: Add wallet_watchAsset
See original GitHub issueI would be nice to have this functionality like Metamask. You can add a custom ERC20 token.
window.ethereum.request({
method: "wallet_watchAsset",
params: {
type: "ERC20", // Initially only supports ERC20, but eventually more!
options: {
address: "0xc2768beF7a6BB57F0FfA169a9ED4017c09696FF1", // The address that the token is at.
symbol: "PE", // A ticker symbol or shorthand, up to 5 chars.
decimals: 6, // The number of decimals in the token
image: "https://raw.githubusercontent.com/peronio-ar/branding/main/logo/256.png", // A string url of the token logo
},
}
Issue Analytics
- State:
- Created a year ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
EIP-747: Add wallet_watchAsset to Provider
Simple Summary. An RPC method for allowing users to easily track new assets with a suggestion from sites they are visiting.
Read more >EIP 747: wallet_watchAsset - Wallets - Ethereum Magicians
Hi there, I wanted to get a final round of comments on wallet_watchAsset before we add it to MetaMask. We've made a properly...
Read more >Add wallet_watchAsset to Provider | 以太坊改进提案 EIPs
简要说明. A method for allowing users to easily track new assets with a suggestion from sites they are visiting.
Read more >Tracking assets - Coinbase Cloud
Acquiring and Tracking Assets with EIP-747 Introduction A major use case of Ethereum wallets ... or by stepping through a tedious process of...
Read more >RPC API - MetaMask Docs
wallet_watchAsset. EIP-747. This method is specified by EIP-747 ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@hboon @agustinkassis This is quite a good idea actually! A dapp can suggest tokens to add to your wallet (if you agree presumably).
I will also add it into my TokenScript Token factory so the wallet adds the token, if it doesn’t have a good token discovery (looking at you Metamask).