# createAlchemyPublicRpcClient | @account-kit/infra

> Overview of the createAlchemyPublicRpcClient 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 createAlchemyPublicRpcClient(params): ClientWithAlchemyMethods;
```

Defined in: [account-kit/infra/src/client/rpcClient.ts:28](https://github.com/alchemyplatform/aa-sdk/blob/main/account-kit/infra/src/client/rpcClient.ts#L28)

Creates an Alchemy public RPC client with the provided chain, connection configuration, and optional fetch options. The client has alchemy methods and can dynamically update HTTP headers.

## Example

```ts
import { createAlchemyPublicRpcClient, alchemy } from "@account-kit/infra";
import { sepolia } from "@account-kit/infra";

const client = createAlchemyPublicRpcClient({
  transport: alchemy({
    apiKey: "ALCHEMY_API_KEY",
  }),
  chain: sepolia,
});
```

## Parameters

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

  <tbody>
    <tr>
      <td>
        `params`
      </td>

      <td>
        \{ `chain`: `undefined` | [`Chain`](https://viem.sh); `transport`: [`AlchemyTransport`](../type-aliases/AlchemyTransport); }
      </td>

      <td>
        The parameters for creating the Alchemy public RPC client
      </td>
    </tr>

    <tr>
      <td>
        `params.chain`
      </td>

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

      <td>
        The blockchain chain configuration
      </td>
    </tr>

    <tr>
      <td>
        `params.transport`
      </td>

      <td>
        [`AlchemyTransport`](../type-aliases/AlchemyTransport)
      </td>

      <td>
        ‐
      </td>
    </tr>

  </tbody>
</table>

## Returns

[`ClientWithAlchemyMethods`](../type-aliases/ClientWithAlchemyMethods)

A client object tailored with Alchemy methods and capabilities to interact with the blockchain