# useSignAndSendPreparedCalls | @account-kit/react

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

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

```ts
function useSignAndSendPreparedCalls(params): UseSignAndSendPreparedCallsResult;
```

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

Hook for signing and sending prepared calls from a smart account.

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

## Example

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

const {
  signAndSendPreparedCalls,
  signAndSendPreparedCallsAsync,
  isSigningAndSendingPreparedCalls,
  error,
} = useSignAndSendPreparedCalls();

// Sign and send prepared calls
await signAndSendPreparedCallsAsync({
  preparedCalls: [
    // unsigned prepared call objects
  ],
});
```

## Remarks

- This hook only works with smart accounts and does not support EOA wallets
- The hook handles both signing and sending of prepared calls in a single operation
- 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>
        [`UseSignAndSendPreparedCallsParams`](../type-aliases/UseSignAndSendPreparedCallsParams)
      </td>

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

  </tbody>
</table>

## Returns

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

An object containing:

- `signAndSendPreparedCalls`: Function to sign and send prepared calls synchronously (returns void)
- `signAndSendPreparedCallsAsync`: Async function to sign and send prepared calls (returns Promise)
- `signAndSendPreparedCallsResult`: The result of the last successful prepared call execution
- `isSigningAndSendingPreparedCalls`: Boolean indicating if prepared calls are currently being signed and sent
- `error`: Error from the last failed prepared call execution, if any