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.
Parameters
The asset type. Currently only “ERC20” is supported.
Token options object.
The address of the token contract (42-character hexadecimal address).
A ticker symbol or shorthand, up to 11 characters.
The number of token decimals.
A string URL of a token logo image (optional).
Returns
Returns true if the token was successfully added to the watch list.
Error Handling
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.