import type { Account, Chain, Client, Hash, Transport } from "viem"; import type { Prettify } from "../../types"; import type { BundlerRpcSchema } from "../../types/bundler"; import type { EntryPoint, GetEntryPointVersion } from "../../types/entrypoint"; import type { UserOperation } from "../../types/userOperation"; export type SendUserOperationParameters = { userOperation: UserOperation>; entryPoint: entryPoint; }; /** * Sends user operation to the bundler * * - Docs: https://docs.pimlico.io/permissionless/reference/bundler-actions/sendUserOperation * * @param client {@link BundlerClient} that you created using viem's createClient and extended it with bundlerActions. * @param args {@link SendUserOperationParameters}. * @returns UserOpHash that you can use to track user operation as {@link Hash}. * * @example * import { createClient } from "viem" * import { sendUserOperation } from "permissionless/actions" * * const bundlerClient = createClient({ * chain: goerli, * transport: http(BUNDLER_URL) * }) * * const userOpHash = sendUserOperation(bundlerClient, { * userOperation: signedUserOperation, * entryPoint: entryPoint * }) * * // Return '0xe9fad2cd67f9ca1d0b7a6513b2a42066784c8df938518da2b51bb8cc9a89ea34' */ export declare const sendUserOperation: (client: Client>, args: Prettify>) => Promise; //# sourceMappingURL=sendUserOperation.d.ts.map