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, etc

Example

import { useWalletConfig } from "@thirdweb-dev/react";
function App() {
const walletConfig = useWalletConfig();
const walletName = walletConfig?.meta.name;
const walletLogo = walletConfig?.meta.iconURL;
}
function useWalletConfig(): undefined | WalletConfig;

Returns

let returnType: undefined | WalletConfig;

The current connected wallet's configuration object or undefined if no wallet is connected.