useActiveAccount

A hook that returns the active account

Example

import { useActiveAccount } from "thirdweb/react";
const activeAccount = useActiveAccount();

Returns

The active Account or undefined if no active account is set.