useWalletConfig
Hook to get the WalletConfig object of the currently connected wallet.
This is useful to get metadata about the connected wallet, such as the wallet name, logo, id etc.
import { useWalletConfig } from "@thirdweb-dev/react";
Usage
import { useWalletConfig } from "@thirdweb-dev/react";
function App() {
const walletConfig = useWalletConfig();
const walletName = walletConfig?.meta.name;
const walletLogo = walletConfig?.meta.iconURL;
}
Return Value
walletConfig
Returns a walletConfig of type WalletConfig , or undefined if no wallet is connected.
walletConfig | undefined;