waitForBundle
Waits for the EIP-5792 bundle to be confirmed.
import { waitForBundle } from "thirdweb/wallets/eip5792";const result = await waitForBundle({ client, chain, wallet, bundleId: "0x123...",});
function waitForBundle(options: { bundleId: string; chain: { readonly blockExplorers?: Array<{ apiUrl?: string; name: string; url: string; }>; readonly experimental?: { increaseZeroByteCount?: boolean }; readonly faucets?: Array<string>; readonly icon?: Icon; readonly id: number; readonly name?: string; readonly nativeCurrency?: { decimals?: number; name?: string; symbol?: string; }; readonly rpc: string; readonly testnet?: true; }; maxBlocksWaitTime?: number;
The options for waiting for the bundle. By default, the max wait time is 100 blocks.
let options: { bundleId: string; chain: { readonly blockExplorers?: Array<{ apiUrl?: string; name: string; url: string; }>; readonly experimental?: { increaseZeroByteCount?: boolean }; readonly faucets?: Array<string>; readonly icon?: Icon; readonly id: number; readonly name?: string; readonly nativeCurrency?: { decimals?: number; name?: string; symbol?: string; }; readonly rpc: string; readonly testnet?: true; }; maxBlocksWaitTime?: number;};
A promise that resolves with the final getCallsStatus result.