Skip to main content

useWalletDisconnector

Callable

  • useWalletDisconnector(wallets?: any): { data: Ref<void, void>; error: Ref<unknown, unknown>; execute: (...args: [wallets?: any]) => Promise<void> | Subscription; status: Ref<error | success | idle | pending, error | success | idle | pending> }

  • Composable for disconnecting wallets


    Parameters

    • optionalwallets: any

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

    Returns { data: Ref<void, void>; error: Ref<unknown, unknown>; execute: (...args: [wallets?: any]) => Promise<void> | Subscription; status: Ref<error | success | idle | pending, error | success | idle | pending> }

    The wallet disconnection state & disconnect function

    • data: Ref<void, void>
    • error: Ref<unknown, unknown>
    • execute: (...args: [wallets?: any]) => Promise<void> | Subscription
        • (...args: [wallets?: any]): Promise<void> | Subscription
        • Parameters

          • rest...args: [wallets?: any]

          Returns Promise<void> | Subscription

    • status: Ref<error | success | idle | pending, error | success | idle | pending>