Skip to main content

useWalletDisconnector

Callable

  • useWalletDisconnector(wallets?: any): [state: AsyncValue<Value, MutationError>, execute: (...args: [wallets?: any]) => Promise<void> | Subscription]

  • Hook for disconnecting wallets


    Parameters

    • optionalwallets: any

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

    Returns [state: AsyncValue<Value, MutationError>, execute: (...args: [wallets?: any]) => Promise<void> | Subscription]

    The wallet disconnection state & disconnect function