# isAlchemyConnectionConfig

> Overview of the isAlchemyConnectionConfig 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 isAlchemyConnectionConfig(
  value,
): value is { apiKey?: string; jwt?: string; url?: string };
```

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

Type guard to check if a value is a valid Alchemy connection config.

## Example

```ts
const maybeConfig: unknown = { apiKey: "test" };
if (isAlchemyConnectionConfig(maybeConfig)) {
  // TypeScript knows maybeConfig is AlchemyConnectionConfig here
  if (maybeConfig.apiKey) {
    console.log("Using API key:", maybeConfig.apiKey);
  }
  if (maybeConfig.url) {
    console.log("Using custom URL:", maybeConfig.url);
  }
}
```

## Parameters

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

  <tbody>
    <tr>
      <td>
        `value`
      </td>

      <td>
        `unknown`
      </td>

      <td>
        The value to check for validity
      </td>
    </tr>

  </tbody>
</table>

## Returns

`value is { apiKey?: string; jwt?: string; url?: string }`

True if the value is a valid Alchemy connection config