Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

connect

Environment Imports

import { connect } from '@ivem/kit'
import { useConnect } from '@ivem/kit-react'
import { useConnect } from '@ivem/kit-vue'

Usage

import { connect } from '@ivem/kit'
 
await connect(config)

Parameters

  • config: Config
  • parameters?: undefined

Return Type

  • Promise<{ accounts: readonly string[]; chainId: string }>

Examples

const result = await connect(config)
console.log(result.accounts, result.chainId)

Related