Skip to content

getUserOperationByHash

Return a UserOperation (UO) based on a hash (userOpHash).

Usage

example.ts
import { smartAccountClient } from "./smartAccountClient";

smartAccountClient.getUserOperationByHash({ hash: "0xUserOpResultHash" });

Returns

Promise<UserOperationResponse | null>

A Promise containing the UO if found on-chain or null if not found.

Parameters

hash: Hash

The hash of the user operation returned from sendUserOperation.