Docs

useSetActiveWallet

A hook that lets you set the active wallet.

Example

import { useSetActiveWallet } from "thirdweb/react";
const setActiveAccount = useSetActiveWallet();
// later in your code
await setActiveAccount(account);

Returns

A function that lets you set the active wallet.