createMultiOwnerLightAccountAlchemyClient
Creates a multi-owner light account Alchemy client using the provided configuration.
Import
import { createMultiOwnerLightAccountAlchemyClient } from "@account-kit/smart-contracts";
Usage
import { createMultiOwnerLightAccountAlchemyClient } from "@account-kit/smart-contracts";
import { sepolia, alchemy } from "@account-kit/infra";
import { LocalAccountSigner } from "@aa-sdk/core";
import { generatePrivateKey } from "viem"
const lightAccountClient = await createMultiOwnerLightAccountAlchemyClient({
transport: alchemy({
apiKey: "your-api-key",
}),
chain: sepolia
signer: LocalAccountSigner.privateKeyToAccountSigner(generatePrivateKey())
});
Parameters
config
AlchemyMultiOwnerLightAccountClientConfig
The configuration for creating the Alchemy client
Returns
Promise<AlchemySmartAccountClient>
A promise that resolves to an AlchemySmartAccountClient
object containing the created account information and methods