# useSendPreparedCalls | @account-kit/react

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

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

Hook for sending prepared calls to a smart account.

This hook provides functionality to send previously prepared calls to a smart account.
It handles the signing and sending of prepared calls, but does not support EOA wallets.

## Example

```ts twoslash
import { useSendPreparedCalls } from "@account-kit/react";

const {
  sendPreparedCalls,
  sendPreparedCallsAsync,
  isSendingPreparedCalls,
  error,
} = useSendPreparedCalls();

// Send prepared calls
await sendPreparedCallsAsync({
  preparedCalls: [
    // prepared call objects
  ],
});
```

## Remarks

- This hook only works with smart accounts and does not support EOA wallets
- The hook handles the signing and sending of prepared calls
- The returned result contains the prepared call IDs

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

      <td>
        Configuration parameters for the hook
      </td>
    </tr>

  </tbody>
</table>

## Returns

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

An object containing:

- `sendPreparedCalls`: Function to send prepared calls synchronously (returns void)
- `sendPreparedCallsAsync`: Async function to send prepared calls (returns Promise)
- `sendPreparedCallsResult`: The result of the last successful prepared call execution
- `isSendingPreparedCalls`: Boolean indicating if prepared calls are currently being sent
- `error`: Error from the last failed prepared call execution, if any