Type Alias WatchAssetRequest

WatchAssetRequest: {
    options: {
        address: Address;
        decimals?: number;
        image?: string;
        symbol?: string;
        tokenId?: string;
    };
    type: string;
}

Request to add a specified asset to the user’s wallet interface.

See EIP-747 for more details.

Type declaration

  • options: {
        address: Address;
        decimals?: number;
        image?: string;
        symbol?: string;
        tokenId?: string;
    }

    Asset-specific configuration details.

    • address: Address

      Address of the token contract.

    • Optionaldecimals?: number

      Number of decimals used by the token.

    • Optionalimage?: string

      URL or base64-encoded image of the token.

    • Optionalsymbol?: string

      Symbol of the token (e.g., "ETH", "USDC").

    • OptionaltokenId?: string

      The unique identifier of the NFT (required for ERC-721 and ERC-1155 tokens). Supported by MetaMask.

  • type: string

    Identifier for the token type (e.g., ERC20, ERC721, or ERC1155).