Skip to main content

useWalletConnector

Callable

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

  • Hook for connecting wallets


    Parameters

    • optionalwallets: any

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

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

    The wallet connection state & connect function