Waits for the EIP-5792 bundle to be confirmed.
This function is dependent on the wallet's support for EIP-5792 and could fail.
import { waitForBundle } from "thirdweb/wallets/eip5792";const result = await waitForBundle({ client, chain, wallet, bundleId: "0x123...",});
function waitForBundle(options: { bundleId: string; chain: Readonly<ChainOptions & { rpc: string }>; client: ThirdwebClient; maxBlocksWaitTime?: number; wallet: Wallet;}): Promise<GetCallsStatusResponse>;
The options for waiting for the bundle. By default, the max wait time is 100 blocks.
let options: { bundleId: string; chain: Readonly<ChainOptions & { rpc: string }>; client: ThirdwebClient; maxBlocksWaitTime?: number; wallet: Wallet;};
let returnType: { receipts: Array<WalletCallReceipt<bigint, "success" | "reverted">>; status: "PENDING" | "CONFIRMED";};
A promise that resolves with the final getCallsStatus result.