waitForCallsStatus

1function waitForCallsStatus(
2 client,
3 params,
4): Promise<{
5 atomic: boolean;
6 capabilities?:
7 | {
8 [key: string]: any;
9 }
10 | {
11 [key: string]: any;
12 };
13 chainId: number;
14 id: string;
15 receipts?: WalletCallReceipt<bigint, "success" | "reverted">[];
16 status: undefined | "pending" | "success" | "failure";
17 statusCode: number;
18 version: string;
19}>;

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.

Example

1const result = await client.waitForCallsStatus({ id: "0x1234..." });
2console.log(result);

Parameters

ParameterTypeDescription

client

InnerWalletApiClient

The wallet API client to use for the request

params

WaitForCallsStatusParameters

Parameters for waiting for calls status, including the call ID and options for polling.

Returns

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.