const waitForUserOperationTransaction: <TTransport, TChain>(
client,
args,
) => Promise<Hex>;Defined in: aa-sdk/core/src/actions/smartAccount/waitForUserOperationTransacation.ts:34
Waits for a user operation transaction to be confirmed by checking the receipt periodically until it is found or a maximum number of retries is reached.
import { createSmartAccountClient } from "@aa-sdk/core";
// smart account client is already extended with waitForUserOperationTransaction
const client = createSmartAccountClient(...);
const result = await client.waitForUserOperationTransaction({
hash: "0x...",
retries: {...} // optional param to configure the retry amounts
});| Type Parameter | Default type |
|---|---|
|
|
|
|
| Parameter | Type | Description |
|---|---|---|
|
| ‐ |
| The parameters for the transaction to wait for |
Promise<Hex>
A promise that resolves to the transaction hash when the transaction is confirmed