Get the status of an EIP-5792 bundle.
This function is dependent on the wallet's support for EIP-5792 and could fail.
import { createThirdwebClient } from "thirdweb"; import { sendCalls, getCallsStatus } from "thirdweb/wallets/eip5792"; const client = createThirdwebClient({ clientId: ... }); const result = await sendCalls({ wallet, client, calls }); let result; while (result.status !== "success") { result = await getCallsStatus(result); }
function getCallsStatus( options: GetCallsStatusOptions,): Promise<{ atomic: boolean; chainId: number; id: string; receipts?: Array<WalletCallReceipt<bigint, "success" | "reverted">>; status: undefined | "pending" | "success" | "failure"; statusCode: number; version: string;}>;
let options: { client: ThirdwebClient; id: WalletSendCallsId; wallet: Wallet;};
let returnType: { blockHash: Hex; blockNumber: quantity; gasUsed: quantity; logs: Array<{ address: string; data: Hex; topics: Array<Hex> }>; status: status; transactionHash: Hex;};
A promise that resolves to the bundle's status and receipts (if available). GetCallsStatusResponse