# isSmartAccountClient | @aa-sdk/core

> Overview of the isSmartAccountClient 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 isSmartAccountClient<TTransport, TChain, TAccount>(
  client,
): client is SmartAccountClient<TTransport, TChain, TAccount>;
```

Defined in: [aa-sdk/core/src/client/isSmartAccountClient.ts:17](https://github.com/alchemyplatform/aa-sdk/blob/main/aa-sdk/core/src/client/isSmartAccountClient.ts#L17)

Use this method to assert that a client is a BaseSmartAccountClient.
Useful for narrowing the type of the client down when used within the
smart account client decorators

## 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* `any`
      </td>

      <td>
        `any`
      </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>
        a viem client
      </td>
    </tr>

  </tbody>
</table>

## Returns

`client is SmartAccountClient<TTransport, TChain, TAccount>`

true if the client is a SmartAccountClient