createConfig
createConfig is the central state container for connection status, accounts, and chain settings across core, React, and Vue integrations.
import { createConfig, iwallet, mainnet } from '@ivem/kit'
const config = createConfig({
chains: [mainnet],
connector: iwallet(),
storage: null,
ssr: false,
})Core-Only Usage
@ivem/kit can be used standalone without React or Vue.
import { createConfig, iwallet, connect, getAccount, mainnet } from '@ivem/kit'
const config = createConfig({
chains: [mainnet],
connector: iwallet(),
})
await connect(config)
const account = getAccount(config)Parameters
chains: supported IOST chains.connector: wallet connector (recommended:iwallet()).storage: persistence storage, passnullto disable persistence.ssr: skip persisted-store hydration and prevent React/Vue integrations from auto-applyinginitialStateor callingreconnectduring SSR-oriented startup.
testnet is still exported for compatibility, but as of 2026-03-11 the public IOST testnet is unavailable.