Add a token to the wallet’s asset watchlist
Defined in EIP-747
Requests that the wallet tracks the given token in the user’s wallet. Once a token is added, it will be shown in the wallet’s token list.
The asset type. Currently only “ERC20” is supported.
Token options object.
Returns true if the token was successfully added to the watch list.
Code | Message | Description |
---|---|---|
4001 | User rejected the request | User denied adding the token |
4100 | Requested method not supported | The method is not supported by the wallet |
-32602 | Invalid params | Invalid token parameters |
Always verify the token contract address and ensure it’s a legitimate token to prevent users from adding malicious tokens.
The token will appear in the user’s wallet token list if successfully added.
Add a token to the wallet’s asset watchlist
Defined in EIP-747
Requests that the wallet tracks the given token in the user’s wallet. Once a token is added, it will be shown in the wallet’s token list.
The asset type. Currently only “ERC20” is supported.
Token options object.
Returns true if the token was successfully added to the watch list.
Code | Message | Description |
---|---|---|
4001 | User rejected the request | User denied adding the token |
4100 | Requested method not supported | The method is not supported by the wallet |
-32602 | Invalid params | Invalid token parameters |
Always verify the token contract address and ensure it’s a legitimate token to prevent users from adding malicious tokens.
The token will appear in the user’s wallet token list if successfully added.