useWalletImage

Returns the wallet icon for the provided wallet id.

Example

import { useWalletImage } from "thirdweb/react";
const { data: walletImage } = useWalletImage("io.metamask");
return <img src={walletImage} alt="MetaMask logo" />;
function useWalletImage(
id: undefined | WalletId,
): UseQueryResult<string, Error>;

Parameters

Type

let id: undefined | WalletId;

Returns

let returnType: UseQueryResult<string, Error>;