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 wallet = useWallet();
}
Return Value
Return Value
Returns an instance of one of the supported wallets, or undefined
if no wallet is connected.
AbstractBrowserWallet<Record<string, any>, Record<string, any>> | undefined