diff --git a/site/snippets/aa-accounts/lightAccountClient.ts b/site/snippets/aa-accounts/lightAccountClient.ts new file mode 100644 index 0000000000..48e626e844 --- /dev/null +++ b/site/snippets/aa-accounts/lightAccountClient.ts @@ -0,0 +1,10 @@ +import { createLightAccountClient } from "@alchemy/aa-accounts"; +import { LocalAccountSigner, sepolia } from "@alchemy/aa-core"; +import { http } from "viem"; + +export const smartAccountClient = createLightAccountClient({ + transport: http("RPC_URL"), + chain: sepolia, + // or any other SmartAccountSigner + owner: LocalAccountSigner.mnemonicToAccountSigner("YOUR_MNEMONIC"), +});