question-mark

Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

EIP-747: Add wallet_watchAsset

See original GitHub issue

Issue Description

I 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:open
  • Created 4 months ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
JamesSmartCellcommented, Sep 10, 2022

@hboon @agustinkassis This is quite a good idea actually! A dapp can suggest tokens to add to your wallet (if you agree presumably).

0reactions
JamesSmartCellcommented, Sep 16, 2022

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).

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found