# watchBundlerClient | @account-kit/core

> Overview of the watchBundlerClient function from @account-kit/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 watchBundlerClient(config): (onChange) => any;
```

Defined in: [account-kit/core/src/actions/watchBundlerClient.ts:20](https://github.com/alchemyplatform/aa-sdk/blob/main/account-kit/core/src/actions/watchBundlerClient.ts#L20)

Watches for changes to the bundler client within the given configuration and triggers a callback when changes occur.

## Example

```ts
import { watchBundlerClient } from "@account-kit/core";
// see createConfig for more information on how to create a config
import { config } from "./config";

watchBundlerClient(config)(console.log);
```

## Parameters

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

  <tbody>
    <tr>
      <td>
        `config`
      </td>

      <td>
        `AlchemyAccountsConfig`
      </td>

      <td>
        The configuration object containing the core store
      </td>
    </tr>

  </tbody>
</table>

## Returns

A function accepting a callback function to invoke when the bundler client changes and returns a function to unsubscribe from the store

```ts
(onChange): any;
```

### Parameters

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

  <tbody>
    <tr>
      <td>
        `onChange`
      </td>

      <td>
        (`bundlerClient`) => `void`
      </td>
    </tr>

  </tbody>
</table>

### Returns

`any`