Skip to main content

useWalletConnector

Callable

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

  • Hook for connecting wallets


    Parameters

    • optionalwallets: any

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

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

    The wallet connection state & connect function