useSetActiveWallet

A hook that lets you set the active wallet.

Example

import { useSetActiveWallet } from "thirdweb/react";
const setActiveWallet = useSetActiveWallet();
// later in your code
await setActiveWallet(wallet);
function useSetActiveWallet(): (
activeWallet: Wallet,
) => Promise<void>;

Returns

let returnType: (activeWallet: Wallet) => Promise<void>;

A function that lets you set the active wallet.