waitForUserOpReceipt

Wait for the user operation to be mined.

Example

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

Parameters

The options and user operation hash

Type

let args: BundlerOptions & {
intervalMs?: number;
timeoutMs?: number;
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 transaction receipt