lightAccountClientActions
Provides a set of actions for managing a light account client, including transferring ownership.
Import
import { lightAccountClientActions } from "@account-kit/smart-contracts";
Usage
import { lightAccountClientActions, createLightAccount } from "@account-kit/smart-contracts";
import { createAlchemySmartAccountClient } from "@account-kit/infra";
import { sepolia } from "@account-kit/infra";
const smartAccountClient = createAlchemySmartAccountClient({
account: await createLightAccount(...),
apiKey: "your-api-key",
chain: sepolia,
}).extend(lightAccountClientActions);
Parameters
client
Client<TTransport, TChain, TAccount>
The client instance for which to provide the light account actions
Returns
LightAccountClientActions<TSigner, TAccount>
An object containing the available light account client actions