createLightAccount

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

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

Type Parameters

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"

Parameters

ParameterTypeDescription

config

CreateLightAccountParams<TTransport, TSigner, TLightAccountVersion>

The parameters for creating a light account

Returns

Promise<LightAccount<TSigner, TLightAccountVersion>>

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