createLightAccountClient
Creates a light account client using the provided parameters, including account information, transport mechanism, blockchain chain, and additional client configurations. This function first creates a light account and then uses it to create a smart account client, extending it with light account client actions.
Also, we modified the return type to be the light account alchemy client if the transport is alchemy.
Examples
Param
The parameters for creating a light account client
Call Signature
Defined in: account-kit/smart-contracts/src/light-account/clients/client.ts:41
Type Parameters
Parameters
Returns
Promise<AlchemySmartAccountClient<undefined | Chain, LightAccount<TSigner>, LightAccountClientActions<TSigner>>>
Call Signature
Defined in: account-kit/smart-contracts/src/light-account/clients/client.ts:54
Type Parameters
Parameters
Returns
Promise<SmartAccountClient<CustomTransport, TChain, LightAccount<TSigner>, SmartAccountClientActions<Chain, SmartContractAccount> & LightAccountClientActions<TSigner, LightAccount<TSigner>>>>