# sendTransactions | @aa-sdk/core

> Overview of the sendTransactions function from @aa-sdk/core

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

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

```ts
function sendTransactions<TTransport, TChain, TAccount, TContext>(
  client_,
  args,
): Promise<`0x${string}`>;
```

Defined in: [aa-sdk/core/src/actions/smartAccount/sendTransactions.ts:36](https://github.com/alchemyplatform/aa-sdk/blob/main/aa-sdk/core/src/actions/smartAccount/sendTransactions.ts#L36)

Sends transactions using the provided client and transaction parameters. This function builds user operations from the transactions, sends them, and waits for the transaction to be mined.

## Example

```ts
import { createSmartAccountClient } from "@aa-sdk/core";

// smart account client is already extended with sendTransactions
const client = createSmartAccountClient(...);
const result = await client.sendTransactions({
 requests: [{
   to: "0x...",
   data: "0x...", // or "0x",
   value: 0n, // optional
 }],
 account, // only required if the client above is not connected to an account
});
```

## Type Parameters

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

  <tbody>
    <tr>
      <td>
        `TTransport` *extends* [`Transport`](https://viem.sh)
      </td>

      <td>
        [`Transport`](https://viem.sh)
      </td>
    </tr>

    <tr>
      <td>
        `TChain` *extends* `undefined` | [`Chain`](https://viem.sh)
      </td>

      <td>
        `undefined` | [`Chain`](https://viem.sh)
      </td>
    </tr>

    <tr>
      <td>
        `TAccount` *extends*
        | `undefined`
        | [`SmartContractAccount`](../type-aliases/SmartContractAccount)
      </td>

      <td>
        | `undefined`
        | [`SmartContractAccount`](../type-aliases/SmartContractAccount)
      </td>
    </tr>

    <tr>
      <td>
        `TContext` *extends* `any`
      </td>

      <td>
        `UserOperationContext`
      </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>
        [`Client`](https://viem.sh)\<`TTransport`, `TChain`, `TAccount`>
      </td>

      <td>
        The client used to send the transactions
      </td>
    </tr>

    <tr>
      <td>
        `args`
      </td>

      <td>
        `SendTransactionsParameters`\<`TAccount`, `TContext`>
      </td>

      <td>
        The parameters for sending the transactions, including requests, overrides, account, and context
      </td>
    </tr>

  </tbody>
</table>

## Returns

`Promise`\<`` `0x${string}` ``>

A promise that resolves to the transaction hash of the sent transactions