# useWaitForCallsStatus | @account-kit/react

> Overview of the useWaitForCallsStatus hook from @account-kit/react

> For the complete documentation index, see [llms.txt](/docs/llms.txt).

{/* This file is auto-generated by TypeDoc. Do not edit manually. */}

```ts
function useWaitForCallsStatus(params): UseWaitForCallsStatusResult;
```

Defined in: [account-kit/react/src/hooks/useWaitForCallsStatus.ts:46](https://github.com/alchemyplatform/aa-sdk/blob/main/account-kit/react/src/hooks/useWaitForCallsStatus.ts#L46)

Hook to wait for calls status to be confirmed.
It will poll until the calls reach the desired status or until a timeout occurs.

## Example

```tsx twoslash
import { useWaitForCallsStatus } from "@account-kit/react";

function MyComponent() {
  const {
    data: result,
    isLoading,
    error,
  } = useWaitForCallsStatus({
    client: smartWalletClient,
    id: "0x1234...", // The call ID from sendPreparedCalls
    timeout: 30_000, // 30 second timeout
  });
}
```

## Parameters

<table>
  <thead>
    <tr>
      <th align="left">Parameter</th>
      <th align="left">Type</th>
      <th align="left">Description</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `params`
      </td>

      <td>
        [`UseWaitForCallsStatusParams`](../interfaces/UseWaitForCallsStatusParams)
      </td>

      <td>
        Parameters for the hook
      </td>
    </tr>

  </tbody>
</table>

## Returns

[`UseWaitForCallsStatusResult`](../type-aliases/UseWaitForCallsStatusResult)

Query result containing the final status