import type { Address, Chain, Client, Hex, Transport } from "viem"; import type { BundlerRpcSchema } from "../../client/decorators/bundlerClient"; import type { EntryPointVersion } from "../../entrypoint/types"; import type { UserOperationRequest } from "../../types"; export const sendRawUserOperation = async < TClient extends Client, TEntryPointVersion extends EntryPointVersion = EntryPointVersion, >( client: TClient, args: { request: UserOperationRequest; entryPoint: Address; }, ): Promise => { return client.request({ method: "eth_sendUserOperation", params: [args.request, args.entryPoint], }); };