useWallet
Hook to get the instance of the currently connected wallet.
import { useWallet } from "@thirdweb-dev/react";
Usage
import { useWallet } from "@thirdweb-dev/react";
function App() {
const walletInstance = useWallet();
}
Return Value
walletInstance
Returns a walletInstance of type WalletInstance
, or undefined
if no wallet is connected.
WalletInstance | undefined;