getCallsStatus

1function getCallsStatus(
2 client,
3 params,
4): Promise<{
5 atomic: boolean;
6 chainId: `0x${string}`;
7 id: `0x${string}`;
8 receipts?: object[];
9 status: 100 | 110 | 115 | 116 | 120 | 200 | 400 | 410 | 500 | 600;
10}>;

Defined in: account-kit/wallet-client/src/client/actions/getCallsStatus.ts:39

Gets the status of a prepared call by its ID. This method is used to check the execution status of calls sent via sendPreparedCalls.

Example

1// After sending prepared calls
2const sendResult = await client.sendPreparedCalls({...});
3
4// Check the status of the first call ID
5const status = await client.getCallsStatus(sendResult.preparedCallIds[0]);

Parameters

ParameterTypeDescription

client

InnerWalletApiClient

The wallet API client to use for the request

params

`0x${string}`

The ID of the prepared call to check

Returns

Promise<{ atomic: boolean; chainId: `0x${string}`; id: `0x${string}`; receipts?: object[]; status: 100 | 110 | 115 | 116 | 120 | 200 | 400 | 410 | 500 | 600; }>

A Promise that resolves to the status information including:

  • id: The hex ID of the call
  • chainId: The chain ID in hex format
  • status: The current status of the batch execution
  • receipts: Optional array of transaction receipts if the batch has been executed