getUserOpReceipt

Get the receipt of a user operation.

Example

import { getUserOpReceipt } from "thirdweb/wallets/smart";
const receipt = await getUserOpReceipt({
client,
chain,
userOpHash,
});
function getUserOpReceipt(
args: BundlerOptions & { userOpHash: `0x${string}` },
): Promise<TransactionReceipt | undefined>;

Parameters

The options for getting the receipt of a user operation.

Type

let args: BundlerOptions & { userOpHash: `0x${string}` };

Returns

let returnType: {
blobGasPrice?: quantity;
blobGasUsed?: quantity;
blockHash: Hash;
blockNumber: quantity;
contractAddress: Address | null | undefined;
cumulativeGasUsed: quantity;
effectiveGasPrice: quantity;
from: Address;
gasUsed: quantity;
logs: Array<Log<quantity, index, false>>;
logsBloom: Hex;
root?: Hash;
status: status;
to: Address | null;
transactionHash: Hash;
transactionIndex: index;
type: type;
};

The receipt of the user operation.