getAlchemyPaymasterAddress

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

Import

1import { getAlchemyPaymasterAddress } from "@account-kit/infra";

Usage

1import { sepolia, getAlchemyPaymasterAddress } from "@account-kit/infra";
2
3const paymasterAddress = getAlchemyPaymasterAddress(sepolia, "0.6.0");

Parameters

chain

Chain The chain for which the paymaster address is required

version

EntryPointVersion The version of the entry point

Returns

Address The Alchemy paymaster address corresponding to the specified chain