import type { Account, Address, 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 GetUserOperationByHashParameters = { hash: Hash; }; export type GetUserOperationByHashReturnType = { userOperation: UserOperation>; entryPoint: Address; transactionHash: Hash; blockHash: Hash; blockNumber: bigint; }; /** * Returns the user operation from userOpHash * * - Docs: https://docs.pimlico.io/permissionless/reference/bundler-actions/getUserOperationByHash * * @param client {@link BundlerClient} that you created using viem's createClient and extended it with bundlerActions. * @param args {@link GetUserOperationByHashParameters} UserOpHash that was returned by {@link sendUserOperation} * @returns userOperation along with entryPoint, transactionHash, blockHash, blockNumber if found or null * * * @example * import { createClient } from "viem" * import { getUserOperationByHash } from "permissionless/actions" * * const bundlerClient = createClient({ * chain: goerli, * transport: http(BUNDLER_URL) * }) * * getUserOperationByHash(bundlerClient, {hash: userOpHash}) * */ export declare const getUserOperationByHash: (client: Client>, { hash }: Prettify) => Promise<{ userOperation: UserOperation>; entryPoint: Address; transactionHash: Hash; blockHash: Hash; blockNumber: bigint; } | null>; //# sourceMappingURL=getUserOperationByHash.d.ts.map