# useCallsStatus | @account-kit/react

> Overview of the useCallsStatus 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 useCallsStatus(params): UseCallsStatusResult;
```

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

Hook to retrieve the status of prepared calls from the Wallet API.

This hook queries the status of a specific call ID that was returned from `wallet_sendPreparedCalls`.
The status indicates whether the batch of calls has been processed, confirmed, or failed on-chain.

## Example

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

function MyComponent() {
  const {
    data: callsStatus,
    isLoading,
    error,
  } = useCallsStatus({
    client: smartWalletClient,
    callId: "0x1234...", // The call ID from sendPreparedCalls
    queryOptions: {
      // Refetch every 2 sec while pending.
      refetchInterval: (q) => (q.state.data?.status === 100 ? 2000 : false),
    },
  });
}
```

## 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>
        [`UseCallsStatusParams`](../type-aliases/UseCallsStatusParams)
      </td>

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

  </tbody>
</table>

## Returns

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

Query result