# isAlchemyTransport | @account-kit/infra

> Overview of the isAlchemyTransport function from @account-kit/infra

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

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

```ts
function isAlchemyTransport(transport, chain): transport is AlchemyTransport;
```

Defined in: [account-kit/infra/src/alchemyTransport.ts:94](https://github.com/alchemyplatform/aa-sdk/blob/main/account-kit/infra/src/alchemyTransport.ts#L94)

A type guard for the transport to determine if it is an Alchemy transport.
Used in cases where we would like to do switching depending on the transport, where there used
to be two clients for an alchemy and a non-alchemy, and with this switch we don't need the two seperate clients. \*

## Parameters

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

  <tbody>
    <tr>
      <td>
        `transport`
      </td>

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

      <td>
        The transport to check
      </td>
    </tr>

    <tr>
      <td>
        `chain`
      </td>

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

      <td>
        Chain for the transport to run its function to return the transport config
      </td>
    </tr>

  </tbody>
</table>

## Returns

`transport is AlchemyTransport`

`true` if the transport is an Alchemy transport, otherwise `false`