# sendCalls

> Overview of the sendCalls function

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

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

```ts
function sendCalls(client, params): Promise<SendCallsResult>;
```

Defined in: [packages/wallet-apis/src/actions/sendCalls.ts:56](https://github.com/alchemyplatform/aa-sdk/blob/v5.x.x/packages/wallet-apis/src/actions/sendCalls.ts#L56)

Prepares, signs, and submits calls. This function internally calls `prepareCalls`, `signPreparedCalls`, and `sendPreparedCalls`.

The client defaults to using EIP-7702 with the signer's address, so you can call
this directly without first calling `requestAccount`.

## Example

```ts
// Send calls (uses signer address via EIP-7702 by default)
const result = await client.sendCalls({
  calls: [
    {
      to: "0x1234...",
      data: "0xabcdef...",
      value: 0n,
    },
  ],
  capabilities: {
    paymaster: { policyId: "your-policy-id" },
  },
});

// The result contains the call ID
console.log(result.id);
```

\<Note>
If using this action with an ERC-20 paymaster in pre-operation mode with `autoPermit`, the contents of the permit will be hidden
from the user. It is recommended to use the `prepareCalls` action instead to manually handle the permit signature.
\</Note>

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

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

  </tbody>
</table>

## Returns

`Promise`\<[`SendCallsResult`](../type-aliases/SendCallsResult)>

A Promise that resolves to the result containing the call ID.