Alchemy Logo

getAlchemyPaymasterAddress

const 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.

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

ParameterTypeDescription
chainChainThe chain for which the paymaster address is required
versionEntryPointVersionThe version of the entry point

Address

The Alchemy paymaster address corresponding to the specified chain

Was this page helpful?