EIP5792.getCallsStatus

Get the status of an EIP-5792 bundle.

This function is dependent on the wallet's support for EIP-5792 and could fail.

Example

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(
): Promise<{
atomic: boolean;
chainId: number;
id: string;
receipts?: Array<WalletCallReceipt<bigint, "success" | "reverted">>;
status: undefined | "pending" | "success" | "failure";
statusCode: number;
version: string;
}>;

Parameters

Type

let options: {
client: ThirdwebClient;
wallet: Wallet;
};

Returns

let returnType: {
blockHash: Hex;
blockNumber: quantity;
gasUsed: quantity;
logs: Array<{ address: string; data: Hex; topics: Array<Hex> }>;
transactionHash: Hex;
};
  • A promise that resolves to the bundle's status and receipts (if available). GetCallsStatusResponse