useActiveWallet

A hook that returns the active wallet

Example

import { useActiveWallet } from "thirdweb/react";
const wallet = useActiveWallet();
function useActiveWallet(): undefined | Wallet;

Returns

let returnType: undefined | Wallet;

The active Wallet or undefined if no active wallet is set.