import { AlchemyProvider } from '@alchemy/aa-alchemy'
import {
LightSmartContractAccount,
getDefaultLightAccountFactoryAddress,
} from '@alchemy/aa-accounts'
import { sepolia } from 'viem/chains'
import { dynamicSigner } from './dynamic'
const chain = sepolia
const provider = new AlchemyProvider({
apiKey: 'ALCHEMY_API_KEY',
chain,
}).connect(
(rpcClient) =>
new LightSmartContractAccount({
chain,
owner: dynamicSigner,
factoryAddress: getDefaultLightAccountFactoryAddress(chain),
rpcClient,
})
)