# prepareCalls | @account-kit/wallet-client

> Overview of the prepareCalls function from @account-kit/wallet-client

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

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

```ts
function prepareCalls<TAccount>(
  client,
  params,
): Promise<{} | {} | {} | ({} & object)>;
```

Defined in: [account-kit/wallet-client/src/client/actions/prepareCalls.ts:57](https://github.com/alchemyplatform/aa-sdk/blob/main/account-kit/wallet-client/src/client/actions/prepareCalls.ts#L57)

Prepares a set of contract calls for execution by building a user operation.
Returns the built user operation and a signature request that needs to be signed
before submitting to sendPreparedCalls.

## Example

```ts
// Prepare a sponsored user operation call
const result = await client.prepareCalls({
  calls: [
    {
      to: "0x1234...",
      data: "0xabcdef...",
      value: "0x0",
    },
  ],
  capabilities: {
    paymasterService: { policyId: "your-policy-id" },
  },
});
```

## Type Parameters

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

  <tbody>
    <tr>
      <td>
        `TAccount` *extends* `undefined` | `` `0x${string}` ``
      </td>

      <td>
        `undefined` | `` `0x${string}` ``
      </td>
    </tr>

  </tbody>
</table>

## Parameters

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

  <tbody>
    <tr>
      <td>
        `client`
      </td>

      <td>
        `InnerWalletApiClient`
      </td>

      <td>
        The wallet API client to use for the request
      </td>
    </tr>

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

      <td>
        [`PrepareCallsParams`](../type-aliases/PrepareCallsParams)\<`TAccount`>
      </td>

      <td>
        Parameters for preparing calls
      </td>
    </tr>

  </tbody>
</table>

## Returns

`Promise`\<
| \{
}
| \{
}
| \{
}
| \{
} & `object`>

A Promise that resolves to the prepared calls result containing
the user operation data and signature request