function waitForCallsStatus(
client,
params,
): Promise<{
atomic: boolean;
capabilities?:
| {
[key: string]: any;
}
| {
[key: string]: any;
};
chainId: number;
id: string;
receipts?: WalletCallReceipt<bigint, "success" | "reverted">[];
status: undefined | "pending" | "success" | "failure";
statusCode: number;
version: string;
}>;Defined in: account-kit/wallet-client/src/client/actions/waitForCallsStatus.ts:19
Waits for the status of a prepared call to be updated, returning after the calls are no longer pending.
const result = await client.waitForCallsStatus({ id: "0x1234..." });
console.log(result);| Parameter | Type | Description |
|---|---|---|
|
| The wallet API client to use for the request |
|
| Parameters for waiting for calls status, including the call ID and options for polling. |
Promise<{
atomic: boolean;
capabilities?: | {
[key: string]: any;
}
| {
[key: string]: any;
};
chainId: number;
id: string;
receipts?: WalletCallReceipt<bigint, "success" | "reverted">[];
status: undefined | "pending" | "success" | "failure";
statusCode: number;
version: string;
}>
A Promise that resolves to the result containing the prepared call status, which includes a transaction receipt after the call is executed.