Skip to main content

useAccounts

Callable

  • useAccounts<TDefer>(options?: (Partial<ChainOptions<any>> | { chainId: null }) & DeferOptions<TDefer>): true extends TDefer ? WalletAccount[] : WalletAccount[]

  • Hook for getting currently connected accounts.


    Type parameters

    • TDefer: boolean = false

    Parameters

    • optionaloptions: (Partial<ChainOptions<any>> | { chainId: null }) & DeferOptions<TDefer>

      Additional options

    Returns true extends TDefer ? WalletAccount[] : WalletAccount[]

    The currently connected accounts