# getAlchemyPaymasterAddress | @account-kit/infra

> Overview of the getAlchemyPaymasterAddress 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 getAlchemyPaymasterAddress(chain, version): `0x${string}`;
```

Defined in: [account-kit/infra/src/gas-manager.ts:80](https://github.com/alchemyplatform/aa-sdk/blob/main/account-kit/infra/src/gas-manager.ts#L80)

Retrieves the Alchemy paymaster address for the given chain. Returns different addresses based on the chain ID.

## Example

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

const paymasterAddress = getAlchemyPaymasterAddress(sepolia, "0.6.0");
```

## Parameters

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

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

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

      <td>
        The chain for which the paymaster address is required
      </td>
    </tr>

    <tr>
      <td>
        `version`
      </td>

      <td>
        keyof `EntryPointRegistryBase`\<`unknown`>
      </td>

      <td>
        The version of the entry point
      </td>
    </tr>

  </tbody>
</table>

## Returns

`` `0x${string}` ``

The Alchemy paymaster address corresponding to the specified chain