From bee152b0f52eca9b04e724f05f1ce292c920544c Mon Sep 17 00:00:00 2001 From: moldy Date: Thu, 1 Feb 2024 19:40:58 -0500 Subject: [PATCH] docs: left out the snippets on last push --- site/snippets/aa-accounts/lightAccountClient.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 site/snippets/aa-accounts/lightAccountClient.ts 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"), +});