Get the status of an EIP-5792 bundle.
import { createThirdwebClient } from "thirdweb"; import { sendCalls, getCallsStatus } from "thirdweb/wallets/eip5792"; const client = createThirdwebClient({ clientId: ... }); const bundleId = await sendCalls({ wallet, client, calls }); let result; while (result.status !== "CONFIRMED") { result = await getCallsStatus({ wallet, client, bundleId }); }
function getCallsStatus( options: GetCallsStatusOptions,): Promise<GetCallsStatusResponse>;
let options: { bundleId: WalletSendCallsId; client: ThirdwebClient; wallet: Wallet;};
let returnType: { receipts: Array<WalletCallReceipt<bigint, "success" | "reverted">>; status: "PENDING" | "CONFIRMED";};
A promise that resolves to the bundle's status and receipts (if available). GetCallsStatusResponse