Skip to main content

useWalletConnector

Callable

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

  • Composable for connecting wallets


    Parameters

    • optionalwallets: any

      Wallets to connect to, will connect to all available wallets if none is specified

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

    The wallet connection state & connect function

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

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

          Returns Subscription | Promise<void>

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