useAccount
Usage
connect()
must be called and a connection must be initiated before account information will be returned.
The useAccount
hook returns the currently selected account at the time of connection. When your account changes in the wallet, the account change will be reflected in the dApp.
import { useAccount } from '@puzzlehq/sdk';
const { account, error, loading } = useAccount();
Types
See the account page for types.