Skip to content

getUserOperationReceipt

Return a UserOperationReceipt based on a hash (userOpHash).

Usage

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

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

Returns

Promise<UserOperationReceipt | null>

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

Parameters

hash: Hash

The hash of the user operation returned from sendUserOperation.