# createBundlerClientFromExisting | @aa-sdk/core

> Creates a bundler client from an existing public client with the provided transport and chain.

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

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

```ts
const createBundlerClientFromExisting: <T>(client) => BundlerClient<T>;
```

Defined in: [aa-sdk/core/src/client/bundlerClient.ts:46](https://github.com/alchemyplatform/aa-sdk/blob/main/aa-sdk/core/src/client/bundlerClient.ts#L46)

Creates a bundler client from an existing public client with the provided transport and chain.

## Example

```ts
import { createPublicClient } from "viem";
import { createBundlerClientFromExisting } from "@aa-sdk/core";

const publicClient = createPublicClient(...);
const bundlerClient = createBundlerClientFromExisting(publicClient);
```

## Type Parameters

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

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

      <td>
        [`Transport`](https://viem.sh)
      </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>
        [`PublicClient`](https://viem.sh)\<`T`, [`Chain`](https://viem.sh)>
      </td>

      <td>
        The existing public client to be extended with bundler actions
      </td>
    </tr>

  </tbody>
</table>

## Returns

[`BundlerClient`](../type-aliases/BundlerClient)\<`T`>

A bundler client that extends the functionality of the provided public client