Skip to main content

useWalletDisconnector

Callable

  • useWalletDisconnector(wallets?: any): [success: AsyncValue<TResult, TError>, disconnect: (...args: [wallets?: any]) => Promise<void>]

  • Hook for disconnecting wallets


    Parameters

    • optionalwallets: any

      Wallets to disconnect from, will disconnect from all connected wallets if none is specified

    Returns [success: AsyncValue<TResult, TError>, disconnect: (...args: [wallets?: any]) => Promise<void>]

    The wallet disconnection state & disconnect function