Alchemy Logo

createLightAccount

function createLightAccount<TTransport, TSigner, TLightAccountVersion>(
  config,
): Promise<LightAccount<TSigner, TLightAccountVersion>>;

Defined in: account-kit/smart-contracts/src/light-account/accounts/account.ts:75

Type ParameterDefault type

TTransport extends Transport

Transport

TSigner extends SmartAccountSigner<any>

SmartAccountSigner<any>

TLightAccountVersion extends "v1.0.1" | "v1.0.2" | "v1.1.0" | "v2.0.0"

"v2.0.0"

ParameterTypeDescription

config

CreateLightAccountParams<TTransport, TSigner, TLightAccountVersion>

The parameters for creating a light account

Promise<LightAccount<TSigner, TLightAccountVersion>>

A promise that resolves to a LightAccount object containing the created account information and methods

Was this page helpful?