getAlchemyPaymasterAddress

1const getAlchemyPaymasterAddress: (chain, version) => Address;

Defined in: account-kit/infra/dist/types/gas-manager.d.ts:26

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

Example

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

Parameters

ParameterTypeDescription

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