# isAlchemyTransport

> Overview of the isAlchemyTransport function

> 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<undefined>;
```

Defined in: [packages/common/src/transport/alchemy.ts:62](https://github.com/alchemyplatform/aa-sdk/blob/v5.x.x/packages/common/src/transport/alchemy.ts#L62)

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.

## 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<undefined>`

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